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

Nested Classes
Modifier and TypeClass and Description
static class TextAppearance.Builder
Builds a TextAppearance.

Nested classes/interfaces inherited from interface android.os.Parcelable

android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>

Field Summary

Fields
Modifier and TypeField and Description
static android.os.Parcelable.Creator<TextAppearance>CREATOR 

Fields inherited from interface android.os.Parcelable

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

Method Summary

All Methods
Instance Methods
Concrete Methods
Modifier and TypeMethod and Description
intdescribeContents() 
booleanequals(java.lang.Object o) 
java.lang.StringgetFontFamilyName()
Returns the font family name specified for TextView text.
intgetFontStyle()
Returns the font style specified for TextView text.
intgetTextColor()
Returns the color specified for TextView text.
floatgetTextSize()
Returns the size specified for TextView text.
inthashCode() 
voidwriteToParcel(android.os.Parcel dest, int flags) 

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

CREATOR

public static final android.os.Parcelable.Creator<TextAppearance> CREATOR

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 class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

describeContents

public int describeContents()
Specified by:
describeContents in interface android.os.Parcelable

writeToParcel

public void writeToParcel(android.os.Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface android.os.Parcelable