public enum

AlignmentProto.TextAlignment

extends java.lang.Enum<AlignmentProto.TextAlignment>

 java.lang.Object

↳java.lang.Enum<AlignmentProto.TextAlignment>

↳androidx.wear.protolayout.proto.AlignmentProto.TextAlignment

Overview

 Alignment of a text element.
 
Protobuf enum androidx.wear.protolayout.proto.TextAlignment

Summary

Enum Constants
TEXT_ALIGN_CENTER
 Align to the center of the Text element.
TEXT_ALIGN_END
 Align to the "end" of the Text element (right in LTR layouts, left in RTL
 layouts).
TEXT_ALIGN_START
 Align to the "start" of the Text element (left in LTR layouts, right in
 RTL layouts).
TEXT_ALIGN_UNDEFINED
 Alignment is undefined.
UNRECOGNIZED
Fields
public static final intTEXT_ALIGN_CENTER_VALUE

 Align to the center of the Text element.

public static final intTEXT_ALIGN_END_VALUE

 Align to the "end" of the Text element (right in LTR layouts, left in RTL
 layouts).

public static final intTEXT_ALIGN_START_VALUE

 Align to the "start" of the Text element (left in LTR layouts, right in
 RTL layouts).

public static final intTEXT_ALIGN_UNDEFINED_VALUE

 Alignment is undefined.

Methods
public static AlignmentProto.TextAlignmentforNumber(int value)

public final intgetNumber()

public static <any>internalGetValueMap()

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

public static AlignmentProto.TextAlignmentvalueOf(int value)

public static AlignmentProto.TextAlignmentvalueOf(java.lang.String name)

public static AlignmentProto.TextAlignmentvalues()

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_ALIGN_UNDEFINED

 Alignment is undefined.
 
TEXT_ALIGN_UNDEFINED = 0;

TEXT_ALIGN_START

 Align to the "start" of the Text element (left in LTR layouts, right in
 RTL layouts).
 
TEXT_ALIGN_START = 1;

TEXT_ALIGN_CENTER

 Align to the center of the Text element.
 
TEXT_ALIGN_CENTER = 2;

TEXT_ALIGN_END

 Align to the "end" of the Text element (right in LTR layouts, left in RTL
 layouts).
 
TEXT_ALIGN_END = 3;

UNRECOGNIZED

Fields

public static final int TEXT_ALIGN_UNDEFINED_VALUE

 Alignment is undefined.
 
TEXT_ALIGN_UNDEFINED = 0;

public static final int TEXT_ALIGN_START_VALUE

 Align to the "start" of the Text element (left in LTR layouts, right in
 RTL layouts).
 
TEXT_ALIGN_START = 1;

public static final int TEXT_ALIGN_CENTER_VALUE

 Align to the center of the Text element.
 
TEXT_ALIGN_CENTER = 2;

public static final int TEXT_ALIGN_END_VALUE

 Align to the "end" of the Text element (right in LTR layouts, left in RTL
 layouts).
 
TEXT_ALIGN_END = 3;

Methods

public static AlignmentProto.TextAlignment values()

public static AlignmentProto.TextAlignment valueOf(java.lang.String name)

public final int getNumber()

public static AlignmentProto.TextAlignment valueOf(int value)

Deprecated: Use AlignmentProto.TextAlignment.forNumber(int) instead.

Parameters:

value: The number of the enum to look for.

Returns:

The enum associated with the given number.

public static AlignmentProto.TextAlignment forNumber(int value)

public static <any> internalGetValueMap()

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