LayoutElementBuilders.SpanText.Builder
public final class LayoutElementBuilders.SpanText.Builder implements LayoutElementBuilders.Span.Builder
Builder for SpanText.
Summary
Public constructors |
|---|
|
Public methods |
|
|---|---|
@NonNull LayoutElementBuilders.SpanText |
Builds an instance with values accumulated in this Builder. |
@NonNull LayoutElementBuilders.SpanText.Builder |
Sets the style of font to use (size, bold etc). |
@NonNull LayoutElementBuilders.SpanText.Builder |
Sets |
@NonNull LayoutElementBuilders.SpanText.Builder |
Sets the text to render. |
@NonNull LayoutElementBuilders.SpanText.Builder |
Sets the text to render. |
Public methods
build
public @NonNull LayoutElementBuilders.SpanTextbuild()
Builds an instance with values accumulated in this Builder.
public @NonNull LayoutElementBuilders.SpanText.BuildersetFontStyle(@NonNull LayoutElementBuilders.FontStyle fontStyle)
Sets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font.
public @NonNull LayoutElementBuilders.SpanText.BuildersetModifiers(@NonNull ModifiersBuilders.SpanModifiers modifiers)
Sets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.
public @NonNull LayoutElementBuilders.SpanText.BuildersetText(@NonNull String text)
Sets the text to render.
public @NonNull LayoutElementBuilders.SpanText.BuildersetText(@NonNull TypeBuilders.StringProp text)
Sets the text to render.