TextAlignment Enum

Definition

Defines text-alignment modes for a view.

public enum TextAlignment
type TextAlignment = 
Inheritance
TextAlignment

Fields

Name Value Description
Inherit 0

Identifies the inherit text-alignment mode.

Gravity 1

Default for the root view.

TextStart 2

Align to the start of the paragraph, e.g.

TextEnd 3

Align to the end of the paragraph, e.g.

Center 4

Center the paragraph, e.g.

ViewStart 5

Identifies the view start text-alignment mode.

ViewEnd 6

Identifies the view end text-alignment mode.

ResolvedDefault 131072

Identifies the resolved default text-alignment mode.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to