public static final class TextAppearance.Builder
extends java.lang.Object
TextAppearance.| Constructor and Description |
|---|
Builder()
Creates a new
TextAppearance.Builder
for constructing a TextAppearance |
| Modifier and Type | Method and Description |
|---|---|
TextAppearance |
build()
Constructs a
TextAppearance
with the specified appearance values. |
TextAppearance.Builder |
setFontFamilyName(java.lang.String fontFamilyName)
Returns TextView appearance configured with name of the font family.
|
TextAppearance.Builder |
setFontStyle(int fontStyle)
Returns TextView appearance configured with style of the font.
|
TextAppearance.Builder |
setTextColor(int textColor)
Returns TextView appearance configured with text color.
|
TextAppearance.Builder |
setTextSize(float textSize)
Returns TextView appearance configured with text size.
|
public Builder()
TextAppearance.Builder
for constructing a TextAppearance@NonNull public TextAppearance build()
TextAppearance
with the specified appearance values.TextAppearance.@NonNull public TextAppearance.Builder setTextColor(int textColor)
textColor - TextView text color.@NonNull public TextAppearance.Builder setTextSize(float textSize)
textSize - TextView text size.@NonNull public TextAppearance.Builder setFontFamilyName(@Nullable java.lang.String fontFamilyName)
fontFamilyName - The name of the font family. May be null.public TextAppearance.Builder setFontStyle(int fontStyle)
fontStyle - The style (normal, bold, italic) of the font.