LayoutElementBuilders.Text.Builder

public final class LayoutElementBuilders.Text.Builder implements LayoutElementBuilders.LayoutElement.Builder


Builder for Text.

Summary

Public constructors

Public methods

@Override @NonNull LayoutElementBuilders.Text

Builds an instance with values accumulated in this Builder.

@NonNull LayoutElementBuilders.Text.Builder

Sets the style of font to use (size, bold etc).

@NonNull LayoutElementBuilders.Text.Builder

Sets the explicit height between lines of text.

@NonNull LayoutElementBuilders.Text.Builder

Sets the maximum number of lines that can be represented by the Text element.

@NonNull LayoutElementBuilders.Text.Builder
setMaxLines(@IntRange(from = 1) int maxLines)

Sets the maximum number of lines that can be represented by the Text element.

@NonNull LayoutElementBuilders.Text.Builder

Sets androidx.wear.tiles.ModifiersBuilders.Modifiers for this element.

@NonNull LayoutElementBuilders.Text.Builder

Sets alignment of the text within its bounds.

@NonNull LayoutElementBuilders.Text.Builder

Sets alignment of the text within its bounds.

@NonNull LayoutElementBuilders.Text.Builder

Sets how to handle text which overflows the bound of the Text element.

@NonNull LayoutElementBuilders.Text.Builder

Sets how to handle text which overflows the bound of the Text element.