public enum

LayoutElementProto.TextOverflow

extends java.lang.Enum<LayoutElementProto.TextOverflow>

 java.lang.Object

↳java.lang.Enum<LayoutElementProto.TextOverflow>

↳androidx.wear.protolayout.proto.LayoutElementProto.TextOverflow

Overview

 How text that will not fit inside the bounds of a Text element will be
 handled.
 
Protobuf enum androidx.wear.protolayout.proto.TextOverflow

Summary

Enum Constants
TEXT_OVERFLOW_ELLIPSIZE
 Truncate the text to fit in the Text element's parent bounds, but add an
 ellipsis (i.e.
TEXT_OVERFLOW_ELLIPSIZE_END
 Truncate the text at the last line defined by {@code setMaxLines} in Text
 to fit in the Text element's bounds, but add an ellipsis (i.e.
TEXT_OVERFLOW_MARQUEETEXT_OVERFLOW_MARQUEE = 3;
TEXT_OVERFLOW_TRUNCATE
 Truncate the text to fit inside of the Text element's bounds.
TEXT_OVERFLOW_UNDEFINED
 Overflow behavior is undefined.
UNRECOGNIZED
Fields
public static final intTEXT_OVERFLOW_ELLIPSIZE_END_VALUE

 Truncate the text at the last line defined by {@code setMaxLines} in Text
 to fit in the Text element's bounds, but add an ellipsis (i.e.

public static final intTEXT_OVERFLOW_ELLIPSIZE_VALUE

 Truncate the text to fit in the Text element's parent bounds, but add an
 ellipsis (i.e.

public static final intTEXT_OVERFLOW_MARQUEE_VALUE

TEXT_OVERFLOW_MARQUEE = 3;

public static final intTEXT_OVERFLOW_TRUNCATE_VALUE

 Truncate the text to fit inside of the Text element's bounds.

public static final intTEXT_OVERFLOW_UNDEFINED_VALUE

 Overflow behavior is undefined.

Methods
public static LayoutElementProto.TextOverflowforNumber(int value)

public final intgetNumber()

public static <any>internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()

public static LayoutElementProto.TextOverflowvalueOf(int value)

public static LayoutElementProto.TextOverflowvalueOf(java.lang.String name)

public static LayoutElementProto.TextOverflowvalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

TEXT_OVERFLOW_UNDEFINED

 Overflow behavior is undefined.
 
TEXT_OVERFLOW_UNDEFINED = 0;

TEXT_OVERFLOW_TRUNCATE

 Truncate the text to fit inside of the Text element's bounds. If text is
 truncated, it will be truncated on a word boundary.
 
TEXT_OVERFLOW_TRUNCATE = 1;

TEXT_OVERFLOW_ELLIPSIZE_END

 Truncate the text at the last line defined by {@code setMaxLines} in Text
 to fit in the Text element's bounds, but add an ellipsis (i.e. ...) to the
 end of the text if it has been truncated. Note that this will not add an
 ellipsis if the number of lines that fits into the available space is less
 than the {@code setMaxLines} in Text.

 DEPRECATED: Use {@link #TEXT_OVERFLOW_ELLIPSIZE} instead.
 
TEXT_OVERFLOW_ELLIPSIZE_END = 2;

TEXT_OVERFLOW_MARQUEE

TEXT_OVERFLOW_MARQUEE = 3;

TEXT_OVERFLOW_ELLIPSIZE

 Truncate the text to fit in the Text element's parent bounds, but add an
 ellipsis (i.e. ...) to the end of the text if it has been truncated.

 <p>Note that, when this is used, the parent of the Text element this
 corresponds to shouldn't have its width and height set to wrapped, as it
 can lead to unexpected results.
 
TEXT_OVERFLOW_ELLIPSIZE = 4;

UNRECOGNIZED

Fields

public static final int TEXT_OVERFLOW_UNDEFINED_VALUE

 Overflow behavior is undefined.
 
TEXT_OVERFLOW_UNDEFINED = 0;

public static final int TEXT_OVERFLOW_TRUNCATE_VALUE

 Truncate the text to fit inside of the Text element's bounds. If text is
 truncated, it will be truncated on a word boundary.
 
TEXT_OVERFLOW_TRUNCATE = 1;

public static final int TEXT_OVERFLOW_ELLIPSIZE_END_VALUE

 Truncate the text at the last line defined by {@code setMaxLines} in Text
 to fit in the Text element's bounds, but add an ellipsis (i.e. ...) to the
 end of the text if it has been truncated. Note that this will not add an
 ellipsis if the number of lines that fits into the available space is less
 than the {@code setMaxLines} in Text.

 DEPRECATED: Use {@link #TEXT_OVERFLOW_ELLIPSIZE} instead.
 
TEXT_OVERFLOW_ELLIPSIZE_END = 2;

public static final int TEXT_OVERFLOW_MARQUEE_VALUE

TEXT_OVERFLOW_MARQUEE = 3;

public static final int TEXT_OVERFLOW_ELLIPSIZE_VALUE

 Truncate the text to fit in the Text element's parent bounds, but add an
 ellipsis (i.e. ...) to the end of the text if it has been truncated.

 <p>Note that, when this is used, the parent of the Text element this
 corresponds to shouldn't have its width and height set to wrapped, as it
 can lead to unexpected results.
 
TEXT_OVERFLOW_ELLIPSIZE = 4;

Methods

public static LayoutElementProto.TextOverflow values()

public static LayoutElementProto.TextOverflow valueOf(java.lang.String name)

public final int getNumber()

public static LayoutElementProto.TextOverflow valueOf(int value)

Deprecated: Use LayoutElementProto.TextOverflow.forNumber(int) instead.

Parameters:

value: The number of the enum to look for.

Returns:

The enum associated with the given number.

public static LayoutElementProto.TextOverflow forNumber(int value)

public static <any> internalGetValueMap()

public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()