TermsAndConditionsUIParams.Builder

public static class TermsAndConditionsUIParams.Builder 扩展对象

有助于配置 TermsAndConditionsUIParams 实例的构建器。

公共方法摘要

TermsAndConditionsUIParams
build()
根据此 Builder 中累积的状态构建 TermsAndConditionsUIParams 对象。
TermsAndConditionsUIParams.Builder
setAcceptButtonTextColor(int allowButtonTextColor)
设置“接受”按钮的文字颜色。
TermsAndConditionsUIParams.Builder
setBackgroundColor(int backgroundColor)
设置对话框的背景颜色。
TermsAndConditionsUIParams.Builder
setButtonsTextSize(int buttonsTextSize)
设置“接受”和“取消”按钮的文字大小。
TermsAndConditionsUIParams.Builder
setButtonsTypeface(Typeface buttonsTypeface)
设置 Accept 和 Cancel 按钮的字体。
TermsAndConditionsUIParams.Builder
setCancelButtonTextColor(int cancelButtonTextColor)
设置“Cancel”按钮的文字颜色。
TermsAndConditionsUIParams.Builder
setMainTextColor(int mainTextColor)
设置字词和驾驶员感知免责声明的文字颜色。
TermsAndConditionsUIParams.Builder
setMainTextTextSize(int mainTextTextSize)
设置条款和驾驶员感知免责声明的文字大小。
TermsAndConditionsUIParams.Builder
setMainTextTypeface(Typeface mainTextTypeface)
设置条款和驾驶员感知免责声明的字体。
TermsAndConditionsUIParams.Builder
setTitleColor(int titleColor)
设置标题文本的颜色。
TermsAndConditionsUIParams.Builder
setTitleTextSize(int titleTextSize)
设置标题文本的大小。
TermsAndConditionsUIParams.Builder
setTitleTypeface(Typeface titleTypeface)
设置标题文本的字体。

继承的方法摘要

公共方法

public TermsAndConditionsUIParams build ()

根据此 Builder 中累积的状态构建 TermsAndConditionsUIParams 对象。

public TermsAndConditionsUIParams.Builder setAcceptButtonTextColor (int acceptButtonTextColor)

设置“接受”按钮的文字颜色。按钮的背景颜色是透明的。

参数
acceptButtonTextColor

public TermsAndConditionsUIParams.Builder setBackgroundColor (int backgroundColor)

设置对话框的背景颜色。

参数
backgroundColor

public TermsAndConditionsUIParams.Builder setButtonsTextSize (int buttonsTextSize)

设置“接受”和“取消”按钮的文字大小。

参数
buttonsTextSize

public TermsAndConditionsUIParams.Builder setButtonsTypeface (Typeface buttonsTypeface)

设置 Accept 和 Cancel 按钮的字体。

参数
buttonsTypeface

public TermsAndConditionsUIParams.Builder setCancelButtonTextColor (int cancelButtonTextColor)

设置“Cancel”按钮的文字颜色。按钮的背景颜色是透明的。

参数
cancelButtonTextColor

public TermsAndConditionsUIParams.Builder setMainTextColor (int mainTextColor)

设置字词和驾驶员感知免责声明的文字颜色。

参数
mainTextColor

public TermsAndConditionsUIParams.Builder setMainTextTextSize (int mainTextTextSize)

设置条款和驾驶员感知免责声明的文字大小。

参数
mainTextTextSize

public TermsAndConditionsUIParams.Builder setMainTextTypeface (Typeface mainTextTypeface)

设置条款和驾驶员感知免责声明的字体。

参数
mainTextTypeface

public TermsAndConditionsUIParams.Builder setTitleColor (int titleColor)

设置标题文本的颜色。

参数
titleColor

public TermsAndConditionsUIParams.Builder setTitleTextSize (int titleTextSize)

设置标题文本的大小。

参数
titleTextSize

public TermsAndConditionsUIParams.Builder setTitleTypeface (Typeface titleTypeface)

设置标题文本的字体。

参数
titleTypeface