LayoutElementBuilders.SpanText
public final class LayoutElementBuilders.SpanText implements LayoutElementBuilders.Span
A portion of text which can be added to a Span. Two different SpanText elements on the same line will be aligned to the same baseline, regardless of the size of each SpanText.
Summary
Nested types |
|---|
public final class LayoutElementBuilders.SpanText.Builder implements LayoutElementBuilders.Span.BuilderBuilder for |
Public methods |
|
|---|---|
@Nullable LayoutElementBuilders.FontStyle |
Gets the style of font to use (size, bold etc). |
@Nullable ModifiersBuilders.SpanModifiers |
Gets |
@Nullable TypeBuilders.StringProp |
Gets the text to render. |
Public methods
public @Nullable LayoutElementBuilders.FontStylegetFontStyle()
Gets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font. Intended for testing purposes only.
public @Nullable ModifiersBuilders.SpanModifiersgetModifiers()
Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.
public @Nullable TypeBuilders.StringPropgetText()
Gets the text to render. Intended for testing purposes only.