com.yandex.mobile.ads.nativeads.template.appearance
Class TextAppearance
java.lang.Object
com.yandex.mobile.ads.nativeads.template.appearance.TextAppearance
- All Implemented Interfaces:
- android.os.Parcelable
public final class TextAppearance
extends java.lang.Object
implements android.os.Parcelable
TextAppearance provides interfaces for TextView customization. TextAppearance are created using
TextAppearance.Builder
.Nested Class Summary
Modifier and Type | Class and Description |
---|---|
static class | TextAppearance.Builder
Builds a
TextAppearance . |
Field Summary
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<TextAppearance> | CREATOR |
Method Summary
Modifier and Type | Method and Description |
---|---|
int | describeContents() |
boolean | equals(java.lang.Object o) |
java.lang.String | getFontFamilyName()
Returns the font family name specified for TextView text.
|
int | getFontStyle()
Returns the font style specified for TextView text.
|
int | getTextColor()
Returns the color specified for TextView text.
|
float | getTextSize()
Returns the size specified for TextView text.
|
int | hashCode() |
void | writeToParcel(android.os.Parcel dest, int flags) |
Method Detail
getTextColor
public int getTextColor()
Returns the color specified for TextView text.
- Returns:
- text color of the TextView.
getTextSize
public float getTextSize()
Returns the size specified for TextView text.
- Returns:
- text size in scale-independent pixels (sp).
getFontFamilyName
@Nullable public java.lang.String getFontFamilyName()
Returns the font family name specified for TextView text.
- Returns:
- font family name of the TextView text.
getFontStyle
public int getFontStyle()
Returns the font style specified for TextView text.
- Returns:
- font style of the TextView text.
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable