-
- All Implemented Interfaces:
public final class TextAppearance.BuilderBuilds a TextAppearance.
-
-
Constructor Summary
Constructors Constructor Description TextAppearance.Builder()Creates a new TextAppearance.Builder for constructing a TextAppearance
-
Method Summary
Modifier and Type Method Description TextAppearancebuild()Constructs a TextAppearance with the specified appearance values. TextAppearance.BuildersetTextColor(int textColor)Returns TextView appearance configured with text color. TextAppearance.BuildersetTextSize(float textSize)Returns TextView appearance configured with text size. TextAppearance.BuildersetFontFamilyName(@Nullable() String fontFamilyName)Returns TextView appearance configured with name of the font family. TextAppearance.BuildersetFontStyle(int fontStyle)Returns TextView appearance configured with style of the font. -
-
Constructor Detail
-
TextAppearance.Builder
TextAppearance.Builder()
Creates a new TextAppearance.Builder for constructing a TextAppearance
-
-
Method Detail
-
build
@NonNull() TextAppearance build()
Constructs a TextAppearance with the specified appearance values.
-
setTextColor
@NonNull() TextAppearance.Builder setTextColor(int textColor)
Returns TextView appearance configured with text color.
- Parameters:
textColor- TextView text color.
-
setTextSize
@NonNull() TextAppearance.Builder setTextSize(float textSize)
Returns TextView appearance configured with text size.
- Parameters:
textSize- TextView text size.
-
setFontFamilyName
@NonNull() TextAppearance.Builder setFontFamilyName(@Nullable() String fontFamilyName)
Returns TextView appearance configured with name of the font family.
- Parameters:
fontFamilyName- The name of the font family.
-
setFontStyle
TextAppearance.Builder setFontStyle(int fontStyle)
Returns TextView appearance configured with style of the font.
- Parameters:
fontStyle- The style (normal, bold, italic) of the font.
-
-
-
-