Class TextAppearance.Builder
-
- All Implemented Interfaces:
public final class TextAppearance.BuilderBuilds a TextAppearance.
-
-
Constructor Summary
Constructors Constructor Description TextAppearance.Builder()
-
Method Summary
Modifier and Type Method Description final TextAppearancebuild()Constructs a TextAppearance with the specified appearance values. final TextAppearance.BuildersetTextColor(Integer textColor)Returns TextView appearance configured with text color. final TextAppearance.BuildersetTextSize(Float textSize)Returns TextView appearance configured with text size. final TextAppearance.BuildersetFontFamilyName(String fontFamilyName)Returns TextView appearance configured with name of the font family. final TextAppearance.BuildersetFontStyle(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.
-
-
-
-