Kotak dialog Sesuaikan Persyaratan dan Ketentuan

Anda dapat menggunakan objek TermsAndConditionsUIParams untuk menyesuaikan tampilan dan tampilan kotak dialog Persyaratan dan Ketentuan dengan mengubah warna latar belakang, {i>font<i}, dan warna teks.

Contoh

Contoh kode berikut menunjukkan cara menyesuaikan tampilan dan nuansa kotak dialog Syarat dan Ketentuan.

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);