public final class

LayoutElementProto.Text.Builder

extends <any>

implements LayoutElementProto.TextOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.LayoutElementProto.Text.Builder

Overview

 A text string.
 
Protobuf type androidx.wear.protolayout.proto.Text

Summary

Methods
public LayoutElementProto.Text.BuilderclearAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.

public LayoutElementProto.Text.BuilderclearFontStyle()

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

public LayoutElementProto.Text.BuilderclearLineHeight()

 The explicit height between lines of text.

public LayoutElementProto.Text.BuilderclearMarqueeParameters()

 Parameters for Marquee animation.

public LayoutElementProto.Text.BuilderclearMaxLines()

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

public LayoutElementProto.Text.BuilderclearModifiers()

 Modifiers for this element.

public LayoutElementProto.Text.BuilderclearMultilineAlignment()

 Alignment of the text within its bounds.

public LayoutElementProto.Text.BuilderclearOverflow()

 How to handle text which overflows the bound of the Text element.

public LayoutElementProto.Text.BuilderclearText()

 The text to render.

public LayoutElementProto.AndroidTextStylegetAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.

public LayoutElementProto.FontStylegetFontStyle()

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

public DimensionProto.SpPropgetLineHeight()

 The explicit height between lines of text.

public LayoutElementProto.MarqueeParametersgetMarqueeParameters()

 Parameters for Marquee animation.

public TypesProto.Int32PropgetMaxLines()

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

public ModifiersProto.ModifiersgetModifiers()

 Modifiers for this element.

public AlignmentProto.TextAlignmentPropgetMultilineAlignment()

 Alignment of the text within its bounds.

public LayoutElementProto.TextOverflowPropgetOverflow()

 How to handle text which overflows the bound of the Text element.

public TypesProto.StringPropgetText()

 The text to render.

public booleanhasAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.

public booleanhasFontStyle()

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

public booleanhasLineHeight()

 The explicit height between lines of text.

public booleanhasMarqueeParameters()

 Parameters for Marquee animation.

public booleanhasMaxLines()

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

public booleanhasModifiers()

 Modifiers for this element.

public booleanhasMultilineAlignment()

 Alignment of the text within its bounds.

public booleanhasOverflow()

 How to handle text which overflows the bound of the Text element.

public booleanhasText()

 The text to render.

public LayoutElementProto.Text.BuildermergeAndroidTextStyle(LayoutElementProto.AndroidTextStyle value)

 An Android platform specific text style configuration options for styling
 and compatibility.

public LayoutElementProto.Text.BuildermergeFontStyle(LayoutElementProto.FontStyle value)

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

public LayoutElementProto.Text.BuildermergeLineHeight(DimensionProto.SpProp value)

 The explicit height between lines of text.

public LayoutElementProto.Text.BuildermergeMarqueeParameters(LayoutElementProto.MarqueeParameters value)

 Parameters for Marquee animation.

public LayoutElementProto.Text.BuildermergeMaxLines(TypesProto.Int32Prop value)

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

public LayoutElementProto.Text.BuildermergeModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Text.BuildermergeMultilineAlignment(AlignmentProto.TextAlignmentProp value)

 Alignment of the text within its bounds.

public LayoutElementProto.Text.BuildermergeOverflow(LayoutElementProto.TextOverflowProp value)

 How to handle text which overflows the bound of the Text element.

public LayoutElementProto.Text.BuildermergeText(TypesProto.StringProp value)

 The text to render.

public LayoutElementProto.Text.BuildersetAndroidTextStyle(LayoutElementProto.AndroidTextStyle.Builder builderForValue)

 An Android platform specific text style configuration options for styling
 and compatibility.

public LayoutElementProto.Text.BuildersetAndroidTextStyle(LayoutElementProto.AndroidTextStyle value)

 An Android platform specific text style configuration options for styling
 and compatibility.

public LayoutElementProto.Text.BuildersetFontStyle(LayoutElementProto.FontStyle.Builder builderForValue)

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

public LayoutElementProto.Text.BuildersetFontStyle(LayoutElementProto.FontStyle value)

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

public LayoutElementProto.Text.BuildersetLineHeight(DimensionProto.SpProp.Builder builderForValue)

 The explicit height between lines of text.

public LayoutElementProto.Text.BuildersetLineHeight(DimensionProto.SpProp value)

 The explicit height between lines of text.

public LayoutElementProto.Text.BuildersetMarqueeParameters(LayoutElementProto.MarqueeParameters.Builder builderForValue)

 Parameters for Marquee animation.

public LayoutElementProto.Text.BuildersetMarqueeParameters(LayoutElementProto.MarqueeParameters value)

 Parameters for Marquee animation.

public LayoutElementProto.Text.BuildersetMaxLines(TypesProto.Int32Prop.Builder builderForValue)

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

public LayoutElementProto.Text.BuildersetMaxLines(TypesProto.Int32Prop value)

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

public LayoutElementProto.Text.BuildersetModifiers(ModifiersProto.Modifiers.Builder builderForValue)

 Modifiers for this element.

public LayoutElementProto.Text.BuildersetModifiers(ModifiersProto.Modifiers value)

 Modifiers for this element.

public LayoutElementProto.Text.BuildersetMultilineAlignment(AlignmentProto.TextAlignmentProp.Builder builderForValue)

 Alignment of the text within its bounds.

public LayoutElementProto.Text.BuildersetMultilineAlignment(AlignmentProto.TextAlignmentProp value)

 Alignment of the text within its bounds.

public LayoutElementProto.Text.BuildersetOverflow(LayoutElementProto.TextOverflowProp.Builder builderForValue)

 How to handle text which overflows the bound of the Text element.

public LayoutElementProto.Text.BuildersetOverflow(LayoutElementProto.TextOverflowProp value)

 How to handle text which overflows the bound of the Text element.

public LayoutElementProto.Text.BuildersetText(TypesProto.StringProp.Builder builderForValue)

 The text to render.

public LayoutElementProto.Text.BuildersetText(TypesProto.StringProp value)

 The text to render.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public boolean hasText()

 The text to render.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicText(StringLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

public TypesProto.StringProp getText()

 The text to render.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicText(StringLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

 The text to render.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicText(StringLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

 The text to render.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicText(StringLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

 The text to render.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicText(StringLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

 The text to render.

 While this field is statically accessible from 1.0, it's only bindable
 since version 1.2 and renderers supporting version 1.2 will use the dynamic
 value (if set).

 When using a dynamic value, make sure to specify the bounding constraints
 for the affected layout element through {@code
 setLayoutConstraintsForDynamicText(StringLayoutConstraint)} otherwise
 {@code build()} fails.
 
.androidx.wear.protolayout.proto.StringProp text = 1;

public boolean hasFontStyle()

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

public LayoutElementProto.FontStyle getFontStyle()

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

public LayoutElementProto.Text.Builder clearFontStyle()

 The style of font to use (size, bold etc). If not specified, defaults to
 the platform's default body font.
 
.androidx.wear.protolayout.proto.FontStyle font_style = 2;

public boolean hasModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

public ModifiersProto.Modifiers getModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

public LayoutElementProto.Text.Builder clearModifiers()

 Modifiers for this element.
 
.androidx.wear.protolayout.proto.Modifiers modifiers = 3;

public boolean hasMaxLines()

 The maximum number of lines that can be represented by the Text element.
 If not defined, the Text element will be treated as a single-line element.
 
.androidx.wear.protolayout.proto.Int32Prop max_lines = 4;

public TypesProto.Int32Prop getMaxLines()

 The maximum number of lines that can be represented by the Text element.
 If not defined, the Text element will be treated as a single-line element.
 
.androidx.wear.protolayout.proto.Int32Prop max_lines = 4;

 The maximum number of lines that can be represented by the Text element.
 If not defined, the Text element will be treated as a single-line element.
 
.androidx.wear.protolayout.proto.Int32Prop max_lines = 4;

 The maximum number of lines that can be represented by the Text element.
 If not defined, the Text element will be treated as a single-line element.
 
.androidx.wear.protolayout.proto.Int32Prop max_lines = 4;

 The maximum number of lines that can be represented by the Text element.
 If not defined, the Text element will be treated as a single-line element.
 
.androidx.wear.protolayout.proto.Int32Prop max_lines = 4;

public LayoutElementProto.Text.Builder clearMaxLines()

 The maximum number of lines that can be represented by the Text element.
 If not defined, the Text element will be treated as a single-line element.
 
.androidx.wear.protolayout.proto.Int32Prop max_lines = 4;

public boolean hasMultilineAlignment()

 Alignment of the text within its bounds. Note that a Text element will size
 itself to wrap its contents, so this option is meaningless for single-line
 text (for that, use alignment of the outer container). For multi-line text,
 however, this will set the alignment of lines relative to the Text element
 bounds. If not defined, defaults to TEXT_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.TextAlignmentProp multiline_alignment = 5;

public AlignmentProto.TextAlignmentProp getMultilineAlignment()

 Alignment of the text within its bounds. Note that a Text element will size
 itself to wrap its contents, so this option is meaningless for single-line
 text (for that, use alignment of the outer container). For multi-line text,
 however, this will set the alignment of lines relative to the Text element
 bounds. If not defined, defaults to TEXT_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.TextAlignmentProp multiline_alignment = 5;

 Alignment of the text within its bounds. Note that a Text element will size
 itself to wrap its contents, so this option is meaningless for single-line
 text (for that, use alignment of the outer container). For multi-line text,
 however, this will set the alignment of lines relative to the Text element
 bounds. If not defined, defaults to TEXT_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.TextAlignmentProp multiline_alignment = 5;

 Alignment of the text within its bounds. Note that a Text element will size
 itself to wrap its contents, so this option is meaningless for single-line
 text (for that, use alignment of the outer container). For multi-line text,
 however, this will set the alignment of lines relative to the Text element
 bounds. If not defined, defaults to TEXT_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.TextAlignmentProp multiline_alignment = 5;

 Alignment of the text within its bounds. Note that a Text element will size
 itself to wrap its contents, so this option is meaningless for single-line
 text (for that, use alignment of the outer container). For multi-line text,
 however, this will set the alignment of lines relative to the Text element
 bounds. If not defined, defaults to TEXT_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.TextAlignmentProp multiline_alignment = 5;

public LayoutElementProto.Text.Builder clearMultilineAlignment()

 Alignment of the text within its bounds. Note that a Text element will size
 itself to wrap its contents, so this option is meaningless for single-line
 text (for that, use alignment of the outer container). For multi-line text,
 however, this will set the alignment of lines relative to the Text element
 bounds. If not defined, defaults to TEXT_ALIGN_CENTER.
 
.androidx.wear.protolayout.proto.TextAlignmentProp multiline_alignment = 5;

public boolean hasOverflow()

 How to handle text which overflows the bound of the Text element.
 A Text element will grow as large as possible inside its parent container
 (while still respecting max_lines); if it cannot grow large  enough to
 render all of its text, the text which cannot fit inside its container will
 be truncated. If not defined, defaults to TEXT_OVERFLOW_TRUNCATE.
 
.androidx.wear.protolayout.proto.TextOverflowProp overflow = 6;

 How to handle text which overflows the bound of the Text element.
 A Text element will grow as large as possible inside its parent container
 (while still respecting max_lines); if it cannot grow large  enough to
 render all of its text, the text which cannot fit inside its container will
 be truncated. If not defined, defaults to TEXT_OVERFLOW_TRUNCATE.
 
.androidx.wear.protolayout.proto.TextOverflowProp overflow = 6;

 How to handle text which overflows the bound of the Text element.
 A Text element will grow as large as possible inside its parent container
 (while still respecting max_lines); if it cannot grow large  enough to
 render all of its text, the text which cannot fit inside its container will
 be truncated. If not defined, defaults to TEXT_OVERFLOW_TRUNCATE.
 
.androidx.wear.protolayout.proto.TextOverflowProp overflow = 6;

 How to handle text which overflows the bound of the Text element.
 A Text element will grow as large as possible inside its parent container
 (while still respecting max_lines); if it cannot grow large  enough to
 render all of its text, the text which cannot fit inside its container will
 be truncated. If not defined, defaults to TEXT_OVERFLOW_TRUNCATE.
 
.androidx.wear.protolayout.proto.TextOverflowProp overflow = 6;

 How to handle text which overflows the bound of the Text element.
 A Text element will grow as large as possible inside its parent container
 (while still respecting max_lines); if it cannot grow large  enough to
 render all of its text, the text which cannot fit inside its container will
 be truncated. If not defined, defaults to TEXT_OVERFLOW_TRUNCATE.
 
.androidx.wear.protolayout.proto.TextOverflowProp overflow = 6;

public LayoutElementProto.Text.Builder clearOverflow()

 How to handle text which overflows the bound of the Text element.
 A Text element will grow as large as possible inside its parent container
 (while still respecting max_lines); if it cannot grow large  enough to
 render all of its text, the text which cannot fit inside its container will
 be truncated. If not defined, defaults to TEXT_OVERFLOW_TRUNCATE.
 
.androidx.wear.protolayout.proto.TextOverflowProp overflow = 6;

public boolean hasMarqueeParameters()

 Parameters for Marquee animation. Only applies when overflow is
 TEXT_OVERFLOW_MARQUEE.
 
.androidx.wear.protolayout.proto.MarqueeParameters marquee_parameters = 9;

public LayoutElementProto.MarqueeParameters getMarqueeParameters()

 Parameters for Marquee animation. Only applies when overflow is
 TEXT_OVERFLOW_MARQUEE.
 
.androidx.wear.protolayout.proto.MarqueeParameters marquee_parameters = 9;

 Parameters for Marquee animation. Only applies when overflow is
 TEXT_OVERFLOW_MARQUEE.
 
.androidx.wear.protolayout.proto.MarqueeParameters marquee_parameters = 9;

 Parameters for Marquee animation. Only applies when overflow is
 TEXT_OVERFLOW_MARQUEE.
 
.androidx.wear.protolayout.proto.MarqueeParameters marquee_parameters = 9;

 Parameters for Marquee animation. Only applies when overflow is
 TEXT_OVERFLOW_MARQUEE.
 
.androidx.wear.protolayout.proto.MarqueeParameters marquee_parameters = 9;

public LayoutElementProto.Text.Builder clearMarqueeParameters()

 Parameters for Marquee animation. Only applies when overflow is
 TEXT_OVERFLOW_MARQUEE.
 
.androidx.wear.protolayout.proto.MarqueeParameters marquee_parameters = 9;

public boolean hasLineHeight()

 The explicit height between lines of text. This is equivalent to the
 vertical distance between subsequent baselines. If not specified, defaults
 the font's recommended interline spacing.
 
.androidx.wear.protolayout.proto.SpProp line_height = 7;

public DimensionProto.SpProp getLineHeight()

 The explicit height between lines of text. This is equivalent to the
 vertical distance between subsequent baselines. If not specified, defaults
 the font's recommended interline spacing.
 
.androidx.wear.protolayout.proto.SpProp line_height = 7;

 The explicit height between lines of text. This is equivalent to the
 vertical distance between subsequent baselines. If not specified, defaults
 the font's recommended interline spacing.
 
.androidx.wear.protolayout.proto.SpProp line_height = 7;

 The explicit height between lines of text. This is equivalent to the
 vertical distance between subsequent baselines. If not specified, defaults
 the font's recommended interline spacing.
 
.androidx.wear.protolayout.proto.SpProp line_height = 7;

 The explicit height between lines of text. This is equivalent to the
 vertical distance between subsequent baselines. If not specified, defaults
 the font's recommended interline spacing.
 
.androidx.wear.protolayout.proto.SpProp line_height = 7;

public LayoutElementProto.Text.Builder clearLineHeight()

 The explicit height between lines of text. This is equivalent to the
 vertical distance between subsequent baselines. If not specified, defaults
 the font's recommended interline spacing.
 
.androidx.wear.protolayout.proto.SpProp line_height = 7;

public boolean hasAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 8;

public LayoutElementProto.AndroidTextStyle getAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 8;

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 8;

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 8;

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 8;

public LayoutElementProto.Text.Builder clearAndroidTextStyle()

 An Android platform specific text style configuration options for styling
 and compatibility.
 
.androidx.wear.protolayout.proto.AndroidTextStyle android_text_style = 8;