Şartlar ve Koşullar iletişim kutusunu özelleştirme

Arka plan rengini, yazı tiplerini ve metin renklerini değiştirerek Hükümler ve Koşullar iletişim kutusunun görünümünü ve tarzını özelleştirmek için TermsAndConditionsUIParams nesnesini kullanabilirsiniz.

Örnek

Aşağıdaki kod örneğinde, Şartlar ve Koşullar iletişim kutusunun görünümünün ve tarzının nasıl özelleştirileceği gösterilmektedir.

TermsAndConditionsUIParams uiParams = TermsAndConditionsUIParams.builder()
    .setBackgroundColor(Color.WHITE)
    .setTitleColor(Color.BLACK)
    .setTitleTypeface(Typeface.DEFAULT)
    .setTitleTextSize(20)
    .setMainTextColor(Color.BLACK)
    .setMainTextTypeface(Typeface.DEFAULT)
    .setMainTextTextSize(20)
    .setButtonsTypeface(Typeface.DEFAULT)
    .setButtonsTextSize(20)
    .setAcceptButtonTextColor(Color.BLACK)
    .setCancelButtonTextColor(Color.BLACK)
    .build();

NavigationApi.showTermsAndConditionsDialog(
    getActivity(),
    "Your Company Name",
    "Your title",
    uiParams,
    null,
    TermsAndConditionsCheckOption.ENABLED);