public class ResourceTextLayoutHelper extends Object
TextLayoutBuilder
from an Android resource.Constructor and Description |
---|
ResourceTextLayoutHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
setTextAppearance(TextLayoutBuilder builder,
Context context,
int resId)
Sets a text appearance for the layout.
|
static void |
updateFromStyleResource(TextLayoutBuilder builder,
Context context,
AttributeSet attrs,
int styleAttr,
int styleRes)
Sets the values for a TextLayoutBuilder from a style resource or a themed attribute.
|
static void |
updateFromStyleResource(TextLayoutBuilder builder,
Context context,
int styleRes)
Sets the values for a TextLayoutBuilder from a style resource.
|
static void |
updateFromStyleResource(TextLayoutBuilder builder,
Context context,
int styleAttr,
int styleRes)
Sets the values for a TextLayoutBuilder from a style resource or a themed attribute.
|
public static void updateFromStyleResource(TextLayoutBuilder builder, Context context, int styleRes)
builder
- The TextLayoutBuildercontext
- The Context to use for resolving the attributesstyleRes
- The style resource identifierpublic static void updateFromStyleResource(TextLayoutBuilder builder, Context context, int styleAttr, int styleRes)
builder
- The TextLayoutBuildercontext
- The Context to use for resolving the attributesstyleAttr
- The themed style attributestyleRes
- The style resource identifierpublic static void updateFromStyleResource(TextLayoutBuilder builder, Context context, AttributeSet attrs, int styleAttr, int styleRes)
builder
- The TextLayoutBuildercontext
- The Context to use for resolving the attributesattrs
- The AttributeSet
used during inflationstyleAttr
- The themed style attributestyleRes
- The style resource identifierpublic static void setTextAppearance(TextLayoutBuilder builder, Context context, int resId)
builder
- The TextLayoutBuilder
instancecontext
- The Context
to use for resolving attributesresId
- The resource identifier of the text appearance