public final class

LayoutElementProto.Text

extends <any>

implements LayoutElementProto.TextOrBuilder

 java.lang.Object

↳<any>

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

Overview

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

Summary

Fields
public static final intANDROID_TEXT_STYLE_FIELD_NUMBER

public static final intFONT_STYLE_FIELD_NUMBER

public static final intLINE_HEIGHT_FIELD_NUMBER

public static final intMARQUEE_PARAMETERS_FIELD_NUMBER

public static final intMAX_LINES_FIELD_NUMBER

public static final intMODIFIERS_FIELD_NUMBER

public static final intMULTILINE_ALIGNMENT_FIELD_NUMBER

public static final intOVERFLOW_FIELD_NUMBER

public static final intTEXT_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public LayoutElementProto.AndroidTextStylegetAndroidTextStyle()

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

public static LayoutElementProto.TextgetDefaultInstance()

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 static LayoutElementProto.Text.BuildernewBuilder()

public static LayoutElementProto.Text.BuildernewBuilder(LayoutElementProto.Text prototype)

public static LayoutElementProto.TextparseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.TextparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.TextparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.TextparseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.TextparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.TextparseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.TextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.TextparseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.TextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.TextparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int TEXT_FIELD_NUMBER

public static final int FONT_STYLE_FIELD_NUMBER

public static final int MODIFIERS_FIELD_NUMBER

public static final int MAX_LINES_FIELD_NUMBER

public static final int MULTILINE_ALIGNMENT_FIELD_NUMBER

public static final int OVERFLOW_FIELD_NUMBER

public static final int MARQUEE_PARAMETERS_FIELD_NUMBER

public static final int LINE_HEIGHT_FIELD_NUMBER

public static final int ANDROID_TEXT_STYLE_FIELD_NUMBER

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;

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;

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;

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;

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;

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;

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;

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;

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;

public static LayoutElementProto.Text parseFrom(java.nio.ByteBuffer data)

public static LayoutElementProto.Text parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Text parseFrom(com.google.protobuf.ByteString data)

public static LayoutElementProto.Text parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Text parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Text parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Text parseDelimitedFrom(java.io.InputStream input)

public static LayoutElementProto.Text parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Text parseFrom(com.google.protobuf.CodedInputStream input)

public static LayoutElementProto.Text parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static LayoutElementProto.Text.Builder newBuilder()

public static LayoutElementProto.Text.Builder newBuilder(LayoutElementProto.Text prototype)

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static LayoutElementProto.Text getDefaultInstance()

public static <any> parser()