LayoutElementBuilders.SpanText
class LayoutElementBuilders.SpanText : 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 |
|---|
|
Builder for |
Public functions |
|
|---|---|
LayoutElementBuilders.FontStyle? |
Gets the style of font to use (size, bold etc). |
ModifiersBuilders.SpanModifiers? |
Gets |
TypeBuilders.StringProp? |
Gets the text to render. |
Public functions
fungetFontStyle(): LayoutElementBuilders.FontStyle?
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.
fungetModifiers(): ModifiersBuilders.SpanModifiers?
Gets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element. Intended for testing purposes only.
fungetText(): TypeBuilders.StringProp?
Gets the text to render. Intended for testing purposes only.