Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTermsAndConditionsUIParams\u003c/code\u003e object allows customization of the Terms and Conditions dialog's appearance, including background color, fonts, and text colors.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can modify elements like title, main text, and button styles using the provided builder methods and parameters within the \u003ccode\u003eTermsAndConditionsUIParams\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe example code showcases how to create and apply a customized \u003ccode\u003eTermsAndConditionsUIParams\u003c/code\u003e object to the Terms and Conditions dialog using the \u003ccode\u003eNavigationApi.showTermsAndConditionsDialog\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# Customize the Terms and Conditions dialog box\n\nYou can use the `TermsAndConditionsUIParams` object to customize the look and\nfeel of the Terms and Conditions dialog box by changing the background color,\nthe fonts, and the text colors.\n\nExample\n-------\n\nThe following code example demonstrates how to customize the look and feel of\nthe Terms and Conditions dialog box. \n\n TermsAndConditionsUIParams uiParams = TermsAndConditionsUIParams.builder()\n .setBackgroundColor(Color.WHITE)\n .setTitleColor(Color.BLACK)\n .setTitleTypeface(Typeface.DEFAULT)\n .setTitleTextSize(20)\n .setMainTextColor(Color.BLACK)\n .setMainTextTypeface(Typeface.DEFAULT)\n .setMainTextTextSize(20)\n .setButtonsTypeface(Typeface.DEFAULT)\n .setButtonsTextSize(20)\n .setAcceptButtonTextColor(Color.BLACK)\n .setCancelButtonTextColor(Color.BLACK)\n .build();\n\n NavigationApi.showTermsAndConditionsDialog(\n getActivity(),\n \"Your Company Name\",\n \"Your title\",\n uiParams,\n null,\n TermsAndConditionsCheckOption.ENABLED);"]]