Value: 16843697
Defines the alignment of the text. A heuristic is used to determine the resolved text alignment.
May be an integer value, such as "100".
This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.
| Constant | Value | Description |
|---|---|---|
| inherit | 0 | Default |
| gravity | 1 | Default for the root view. The gravity determines the alignment, ALIGN_NORMAL, ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s text direction |
| textStart | 2 | Align to the start of the paragraph, e.g. ALIGN_NORMAL. |
| textEnd | 3 | Align to the end of the paragraph, e.g. ALIGN_OPPOSITE. |
| center | 4 | Center the paragraph, e.g. ALIGN_CENTER. |
| viewStart | 5 | Align to the start of the view, which is ALIGN_LEFT if the view’s resolved layoutDirection is LTR, and ALIGN_RIGHT otherwise. |
| viewEnd | 6 | Align to the end of the view, which is ALIGN_RIGHT if the view’s resolved layoutDirection is LTR, and ALIGN_LEFT otherwise |
May be one of the following constant values.