Class TextAppearance

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

java.lang.Object ⇽ TextAppearance

public class TextAppearance

A class that defines the interface for customizing an ad's text layout.

An object for customizing an ad's text layout is created using TextAppearance.Builder.

Nested Classes

Constructors

TextAppearance(final Parcel in)

Methods

int describeContents()
boolean equals(final Object o)
String getFontFamilyName()

Returns the font name.

int getFontStyle()

Returns the font style.

int getTextColor()

Returns the text color.

float getTextSize()

Returns the text size in scale-independent pixels.

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

Fields

final Creator< TextAppearance > CREATOR

Constructor Detail

TextAppearance

protected TextAppearance (final Parcel in)

Method Detail

describeContents

public int describeContents ()

equals

public boolean equals (final Object o)

getFontFamilyName

public String getFontFamilyName ()

Returns the font name.

Returns:

Font name.

getFontStyle

public int getFontStyle ()

Returns the font style.

Returns:

Font style.

getTextColor

public int getTextColor ()

Returns the text color.

Returns:

Text color.

getTextSize

public float getTextSize ()

Returns the text size in scale-independent pixels.

Returns:

Text size in scale-independent pixels.

hashCode

public int hashCode ()

writeToParcel

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