Kotak dialog Sesuaikan Persyaratan dan Ketentuan

Anda dapat menggunakan objek TermsAndConditionsUIParams untuk menyesuaikan tampilan dan nuansa kotak dialog Persyaratan Layanan dengan mengubah warna latar belakang, font, dan warna teks.

Contoh

Contoh kode berikut menunjukkan cara menyesuaikan tampilan dan nuansa kotak dialog Persyaratan Layanan.

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