An immutable class that represents the parameters used to customize the look and feel of a TermsAndConditionsDialog.
If not set, the parameters default to the following values:
- background color: white.
- title color: black.
- title typeface:
Typeface.DEFAULT
. - title text size: 20.
- main text color: black.
- main text typeface:
Typeface.DEFAULT
. - main text text size: 20.
- buttons typeface:
Typeface.DEFAULT
. - buttons text size: 20.
- accept button text color: black.
- cancel button text color: black.
Nested Class Summary
class | TermsAndConditionsUIParams.Builder | A builder that helps to configure an instance of TermsAndConditionsUIParams . |
Field Summary
public final int | acceptButtonTextColor | The text color of the Accept button. |
public final int | backgroundColor | The background color of the dialog box. |
public final int | buttonsTextSize | The text size of the Accept and Cancel buttons. |
public final Typeface | buttonsTypeface | The typeface of the Accept and Cancel buttons. |
public final int | cancelButtonTextColor | The text color of the Cancel button. |
public final int | mainTextColor | The text color of the Terms and Driver's Awareness disclaimer. |
public final int | mainTextTextSize | The text size of the Terms and Driver's Awareness disclaimer. |
public final Typeface | mainTextTypeface | The typeface of the Terms and Driver's Awareness disclaimer. |
public final int | titleColor | The text color of the title. |
public final int | titleTextSize | The text size of the title. |
public final Typeface | titleTypeface | The typeface of the title. |
Public Method Summary
static TermsAndConditionsUIParams.Builder |
builder()
Returns a new instance of
TermsAndConditionsUIParams.Builder . |
Inherited Method Summary
Fields
public final int acceptButtonTextColor
The text color of the Accept button. The background color of the button is transparent.
public final int backgroundColor
The background color of the dialog box.
public final int buttonsTextSize
The text size of the Accept and Cancel buttons.
public final Typeface buttonsTypeface
The typeface of the Accept and Cancel buttons.
public final int cancelButtonTextColor
The text color of the Cancel button. The background color of the button is transparent.
public final int mainTextColor
The text color of the Terms and Driver's Awareness disclaimer.
public final int mainTextTextSize
The text size of the Terms and Driver's Awareness disclaimer.
public final Typeface mainTextTypeface
The typeface of the Terms and Driver's Awareness disclaimer.
public final int titleColor
The text color of the title.
public final int titleTextSize
The text size of the title.
public final Typeface titleTypeface
The typeface of the title.
Public Methods
public static TermsAndConditionsUIParams.Builder builder ()
Returns a new instance of TermsAndConditionsUIParams.Builder
.