Android Guides | Samples

Android.Views.TextAlignment Enumeration

Enumerates values returned by several types.

Syntax

public enum TextAlignment

Remarks

Members

Member NameDescription
CenterCenter the paragraph, e.g. ALIGN_CENTER. Use with View.TextAlignment
GravityDefault for the root view. The gravity determines the text alignment, ALIGN_NORMAL, ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s text direction. Use with View.TextAlignment
Inherit
TextEndAlign to the end of the paragraph, e.g. ALIGN_OPPOSITE. Use with View.TextAlignment
TextStartAlign to the start of the paragraph, e.g. ALIGN_NORMAL. Use with View.TextAlignment
ViewEndAlign to the end of the view, which is ALIGN_RIGHT if the view’s resolved layoutDirection is LTR, and ALIGN_LEFT otherwise. Use with View.TextAlignment
ViewStartAlign to the start of the view, which is ALIGN_LEFT if the view’s resolved layoutDirection is LTR, and ALIGN_RIGHT otherwise. Use with View.TextAlignment

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Views.TextAlignment are listed below.

See Also: Enum

Public Fields

CenterTextAlignment. Center the paragraph, e.g. ALIGN_CENTER. Use with View.TextAlignment
GravityTextAlignment. Default for the root view. The gravity determines the text alignment, ALIGN_NORMAL, ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph’s text direction. Use with View.TextAlignment
InheritTextAlignment.
TextEndTextAlignment. Align to the end of the paragraph, e.g. ALIGN_OPPOSITE. Use with View.TextAlignment
TextStartTextAlignment. Align to the start of the paragraph, e.g. ALIGN_NORMAL. Use with View.TextAlignment
ViewEndTextAlignment. Align to the end of the view, which is ALIGN_RIGHT if the view’s resolved layoutDirection is LTR, and ALIGN_LEFT otherwise. Use with View.TextAlignment
ViewStartTextAlignment. Align to the start of the view, which is ALIGN_LEFT if the view’s resolved layoutDirection is LTR, and ALIGN_RIGHT otherwise. Use with View.TextAlignment