We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
ReferencesAds KitAndroid-Javacom.huawei.hms.adsClass SummaryAppDownloadButtonStyle.Style

AppDownloadButtonStyle.Style

Expand

Class Info

public static class AppDownloadButtonStyle.Style

Class that provides basic style information of the app download button.

Public Method Summary

Expand

Qualifier and Type

Method Name and Description

Drawable

getBackground()

Obtains the background of the app download button.

int

getTextColor()

Obtains the color ID of the text on the app download button.

int

getTextSize()

Obtains the font size of the text on the app download button.

Typeface

getTypeface()

Obtains the Typeface object.

void

setBackground(Drawable background)

Sets the background of the app download button.

void

setTextColor(int textColor)

Sets the color ID of the text on the app download button.

void

setTextSize(int textSize)

Sets the font size of the text on the app download button.

void

setTypeface(Typeface tf)

Sets the font style of the text on the app download button using the Typeface object.

Public Methods

getBackground

Expand

Method

public Drawable getBackground()

Obtains the background of the app download button.

Returns

Expand

Type

Description

Drawable

Background of the app download button.

getTextColor

Expand

Method

public int getTextColor()

Obtains the color ID of the text on the app download button.

Returns

Expand

Type

Description

int

Color ID.

getTextSize

Expand

Method

public int getTextSize()

Obtains the font size of the text on the app download button.

Returns

Expand

Type

Description

int

Font size.

getTypeface

Expand

Method

public Typeface getTypeface()

Obtains the Typeface object.

Returns

Expand

Type

Description

Typeface

Typeface object.

setBackground

Expand

Method

public void setBackground(Drawable background)

Sets the background of the app download button.

Parameters

Expand

Name

Description

background

Background of the app download button.

setTextColor

Expand

Method

public void setTextColor(int textColor)

Sets the color ID of the text on the app download button.

Parameters

Expand

Name

Description

textColor

Color ID.

setTextSize

Expand

Method

public void setTextSize(int textSize)

Sets the font size of the text on the app download button.

Parameters

Expand

Name

Description

textSize

Font size of the text on the app download button, in pixels.

setTypeface

Expand

Method

public void setTypeface(Typeface tf)

Sets the font style of the text on the app download button using the Typeface object.

Parameters

Expand

Name

Description

tf

Typeface object.

Search in References
Enter a keyword.