You can use the TermsAndConditionsUIParams
object to customize the look and
feel of the Terms and Conditions dialog box by changing the background color,
the fonts, and the text colors.
Example
The following code example demonstrates how to customize the look and feel of the Terms and Conditions dialog box.
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);