Android Guides | Samples

Android.Widget.GridLayout.Alignment Class

Alignments specify where a view should be placed within a cell group and what size it should be.

See Also: GridLayout+Alignment

Syntax

[Android.Runtime.Register("android/widget/GridLayout$Alignment", DoNotGenerateAcw=true)]
public abstract class GridLayout.Alignment : Object

Remarks

Alignments specify where a view should be placed within a cell group and what size it should be.

The GridLayout+LayoutParams class contains a LayoutParams.RowSpec and a LayoutParams.ColumnSpec each of which contains an alignment. Overall placement of the view in the cell group is specified by the two alignments which act along each axis independently.

The GridLayout class defines the most common alignments used in general layout: GridLayout.TOP, GridLayout.LEFT, GridLayout.BOTTOM, GridLayout.RIGHT, GridLayout.Start, GridLayout.End, GridLayout.Center, GridLayout.BASELINE and GridLayout.Fill.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14

The members of Android.Widget.GridLayout.Alignment are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.