public enum TextAlignment extends Enum<TextAlignment>
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(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
View
or Layout.Alignment
.public static final TextAlignment TEXT_END
View
or Layout.Alignment
/.public static final TextAlignment CENTER
public static final TextAlignment LAYOUT_START
View
.public static final TextAlignment LAYOUT_END
View
.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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null