-
- All Implemented Interfaces:
public final class TextAppearance.Builder
Builds a TextAppearance.
-
-
Constructor Summary
Constructors Constructor Description TextAppearance.Builder()
-
Method Summary
Modifier and Type Method Description final TextAppearance
build()
Constructs a TextAppearance with the specified appearance values. final TextAppearance.Builder
setTextColor(Integer textColor)
Returns TextView appearance configured with text color. final TextAppearance.Builder
setTextSize(Float textSize)
Returns TextView appearance configured with text size. final TextAppearance.Builder
setFontFamilyName(String fontFamilyName)
Returns TextView appearance configured with name of the font family. final TextAppearance.Builder
setFontStyle(Integer fontStyle)
Returns TextView appearance configured with style of the font. -
-
Method Detail
-
build
final TextAppearance build()
Constructs a TextAppearance with the specified appearance values.
-
setTextColor
final TextAppearance.Builder setTextColor(Integer textColor)
Returns TextView appearance configured with text color.
- Parameters:
textColor
- TextView text color.
-
setTextSize
final TextAppearance.Builder setTextSize(Float textSize)
Returns TextView appearance configured with text size.
- Parameters:
textSize
- TextView text size.
-
setFontFamilyName
final TextAppearance.Builder setFontFamilyName(String fontFamilyName)
Returns TextView appearance configured with name of the font family.
- Parameters:
fontFamilyName
- The name of the font family.
-
setFontStyle
final TextAppearance.Builder setFontStyle(Integer fontStyle)
Returns TextView appearance configured with style of the font.
- Parameters:
fontStyle
- The style (normal, bold, italic) of the font.
-
-
-
-