public final class TextStylesHelper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BREAK_STRATEGY |
static int |
DEFAULT_EMS |
static int |
DEFAULT_HYPHENATION_FREQUENCY |
static int |
DEFAULT_JUSTIFICATION_MODE |
static int |
DEFAULT_MAX_WIDTH |
static int |
DEFAULT_MIN_WIDTH |
static TextAlignment |
textAlignmentDefault |
Constructor and Description |
---|
TextStylesHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
onLoadStyle(ComponentContext c,
Output<TruncateAt> ellipsize,
Output<Float> extraSpacing,
Output<Boolean> shouldIncludeFontPadding,
Output<Float> spacingMultiplier,
Output<Integer> minLines,
Output<Integer> maxLines,
Output<Integer> minEms,
Output<Integer> maxEms,
Output<Integer> minTextWidth,
Output<Integer> maxTextWidth,
Output<Boolean> isSingleLine,
Output<CharSequence> text,
Output<ColorStateList> textColorStateList,
Output<Integer> linkColor,
Output<Integer> highlightColor,
Output<Integer> textSize,
Output<TextAlignment> textAlignment,
Output<Integer> breakStrategy,
Output<Integer> hyphenationFrequency,
Output<Integer> justificationMode,
Output<Integer> textStyle,
Output<Float> shadowRadius,
Output<Float> shadowDx,
Output<Float> shadowDy,
Output<Integer> shadowColor,
Output<VerticalGravity> verticalGravity,
Output<Typeface> typeface) |
public static final int DEFAULT_EMS
public static final int DEFAULT_MIN_WIDTH
public static final int DEFAULT_MAX_WIDTH
public static final int DEFAULT_BREAK_STRATEGY
public static final int DEFAULT_HYPHENATION_FREQUENCY
public static final int DEFAULT_JUSTIFICATION_MODE
public static final TextAlignment textAlignmentDefault
public static void onLoadStyle(ComponentContext c, Output<TruncateAt> ellipsize, Output<Float> extraSpacing, Output<Boolean> shouldIncludeFontPadding, Output<Float> spacingMultiplier, Output<Integer> minLines, Output<Integer> maxLines, Output<Integer> minEms, Output<Integer> maxEms, Output<Integer> minTextWidth, Output<Integer> maxTextWidth, Output<Boolean> isSingleLine, Output<CharSequence> text, Output<ColorStateList> textColorStateList, Output<Integer> linkColor, Output<Integer> highlightColor, Output<Integer> textSize, Output<TextAlignment> textAlignment, Output<Integer> breakStrategy, Output<Integer> hyphenationFrequency, Output<Integer> justificationMode, Output<Integer> textStyle, Output<Float> shadowRadius, Output<Float> shadowDx, Output<Float> shadowDy, Output<Integer> shadowColor, Output<VerticalGravity> verticalGravity, Output<Typeface> typeface)