public enum TextAlignment extends java.lang.Enum<TextAlignment>
android.text.Layout.Alignment and View.TEXT_ALIGNMENT_* because this full list of values is not
supported by either implementation.| Enum Constant and Description |
|---|
CENTER
Align the text to the center.
|
LAYOUT_END
Align the text to the start of the view i.e.
|
LAYOUT_START
Align the text to the start of the view i.e.
|
LEFT
Align the text to the left, ignoring the text or locale preferences for LTR/RTL.
|
RIGHT
Align the text to the right, ignoring the text or locale preferences for LTR/RTL.
|
TEXT_END
Align the text to the end of the paragraph i.e.
|
TEXT_START
Align the text to the start of the paragraph i.e.
|
| Modifier and Type | Method and Description |
|---|---|
static TextAlignment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAlignment TEXT_START
android.view.View#TEXT_ALIGNMENT_TEXT_START or android.text.Layout.Alignment#ALIGN_NORMAL.public static final TextAlignment TEXT_END
android.view.View#TEXT_ALIGNMENT_TEXT_END or android.text.Layout.Alignment#ALIGN_OPPOSITE/.public static final TextAlignment CENTER
public static final TextAlignment LAYOUT_START
android.view.View#TEXT_ALIGNMENT_VIEW_START.public static final TextAlignment LAYOUT_END
android.view.View#TEXT_ALIGNMENT_VIEW_END.public static final TextAlignment LEFT
public static final TextAlignment RIGHT
public static TextAlignment[] values()
for (TextAlignment c : TextAlignment.values()) System.out.println(c);
public static TextAlignment valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null