Class ButtonAppearance

com.yandex.mobile.ads.nativeads.template.appearance

java.lang.Object ⇽ ButtonAppearance

public class ButtonAppearance

A class that defines the interface for customizing the standard design of a button in an ad.

An object for customizing the standard design of buttons in ads is created using ButtonAppearance.Builder.

Nested Classes

Constructors

ButtonAppearance(final Parcel in)

Methods

int describeContents()
boolean equals(final Object o)
int getBorderColor()

Returns the color of the button border.

float getBorderWidth()

Returns the width of the button border.

int getNormalColor()

Returns the color of the button background in its normal state.

int getPressedColor()

Returns the color of the button background when clicked.

TextAppearance getTextAppearance()

Returns the settings for the button label.

int hashCode()
void writeToParcel(final Parcel dest, final int flags)

Fields

final Creator< ButtonAppearance > CREATOR

Constructor Detail

ButtonAppearance

protected ButtonAppearance (final Parcel in)

Method Detail

describeContents

public int describeContents ()

equals

public boolean equals (final Object o)

getBorderColor

public int getBorderColor ()

Returns the color of the button border.

Returns:

The color of the button border.

getBorderWidth

public float getBorderWidth ()

Returns the width of the button border.

Returns:

The width of the button border.

getNormalColor

public int getNormalColor ()

Returns the color of the button background in its normal state.

Returns:

The color of the button background in its normal state.

getPressedColor

public int getPressedColor ()

Returns the color of the button background when clicked.

Returns:

The color of the button background when clicked.

getTextAppearance

public TextAppearance getTextAppearance ()

Returns the settings for the button label.

Returns:

Settings for the button label.

hashCode

public int hashCode ()

writeToParcel

public void writeToParcel (final Parcel dest, final int flags)