條款與條件使用者介面參數

公用類別 TermsAndConditionsUIParams 擴充物件

不可變動的類別,代表用於自訂 ConditionsAndConditionsDialog 的參數和風格。

如未設定,這些參數會預設為下列值:

  • 背景顏色:白色。
  • 標題顏色:black。
  • 標題字體:Typeface.DEFAULT
  • 標題文字大小:20。
  • 主要文字顏色:black。
  • 主要文字字體:Typeface.DEFAULT
  • 主要文字大小:20。
  • 按鈕字體:Typeface.DEFAULT
  • 按鈕文字大小:20。
  • 接受按鈕文字顏色:黑色。
  • 取消按鈕文字顏色:黑色。

巢狀類別摘要

類別 TermsAndConditionsUIParams.Builder 可協助設定 TermsAndConditionsUIParams 執行個體的建構工具。 

欄位摘要

公開 最終 int acceptButtonTextColor 「接受」按鈕的文字顏色。
公開 最終 int backgroundColor 對話方塊的背景顏色。
公開 最終 int buttonsTextSize 「接受」和「取消」按鈕的文字大小。
public 最終 字體 buttonsTypeface 「接受」和「取消」按鈕的字體。
公開 最終 int cancelButtonTextColor 「取消」按鈕的文字顏色。
公開 最終 int mainTextColor 條款和駕駛人品牌認知免責事項的文字顏色。
公開 最終 int mainTextTextSize 條款和駕駛人品牌認知免責事項的文字大小。
public 最終 字體 mainTextTypeface 條款和駕駛人品牌認知免責事項的字體。
公開 最終 int titleColor 標題的文字顏色。
公開 最終 int titleTextSize 標題的文字大小。
public 最終 字體 titleTypeface 標題的字體。

公用方法摘要

static TermsAndConditionsUIParams.Builder
builder()
傳回 TermsAndConditionsUIParams.Builder 的新執行個體。

繼承方法摘要

欄位

public 最終 int acceptButtonTextColor

「接受」按鈕的文字顏色。按鈕的背景顏色為透明。

public final int backgroundColor

對話方塊的背景顏色。

public 最後 int buttonsTextSize

「接受」和「取消」按鈕的文字大小。

public 最終 Typeface buttonsTypeface

「接受」和「取消」按鈕的字體。

public 最終 int cancelButtonTextColor

「取消」按鈕的文字顏色。按鈕的背景顏色為透明。

public 最終 int mainTextColor

條款和駕駛人品牌認知免責事項的文字顏色。

public 最終 int mainTextTextSize

條款和駕駛人品牌認知免責事項的文字大小。

public 最終 Typeface mainTextTypeface

條款和駕駛人品牌認知免責事項的字體。

public 最終 int titleColor

標題的文字顏色。

public 最後 int titleTextSize

標題的文字大小。

public 最終 字體 titleTypeface

標題的字體。

公用方法

公開 靜態 TermsAndConditionsUIParams.Builder 建構工具 ()

傳回 TermsAndConditionsUIParams.Builder 的新執行個體。