TextAlignment

Enumeration of text alignment values. These values differ from and View.TEXT_ALIGNMENT_* because this full list of values is not supported by either implementation.

Entries

Link copied to clipboard

Align the text to the start of the paragraph i.e. TEXT_ALIGNMENT_TEXT_START or ALIGN_NORMAL.

Link copied to clipboard

Align the text to the end of the paragraph i.e. TEXT_ALIGNMENT_TEXT_END or ALIGN_OPPOSITE/.

Link copied to clipboard

Align the text to the center.

Link copied to clipboard

Align the text to the start of the view i.e. TEXT_ALIGNMENT_VIEW_START.

Link copied to clipboard

Align the text to the start of the view i.e. TEXT_ALIGNMENT_VIEW_END.

Link copied to clipboard

Align the text to the left, ignoring the text or locale preferences for LTR/RTL.

Link copied to clipboard

Align the text to the right, ignoring the text or locale preferences for LTR/RTL.

Functions

Link copied to clipboard
open fun valueOf(name: String): TextAlignment

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.