Android.Widget.GridLayout Members

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

See Also: Inherited members from Android.Views.ViewGroup

Public Constructors

Protected Constructors

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

Public Fields

const
AlignBoundsGridAlign (0). This constant is an GridLayout.AlignmentMode.
const
AlignMarginsGridAlign (1). This constant is an GridLayout.AlignmentMode.
const
HorizontalGridOrientation (0). The horizontal orientation.
const
Undefinedint (-2147483648). The constant used to indicate that a value is undefined.
const
VerticalGridOrientation (1). The vertical orientation.

Public Properties

AlignmentModeGridAlign. Returns the alignment mode.
[read-only]
static
BaselineAlighmentGridLayout.Alignment. Indicates that a view should be aligned with the baselines of the other views in its cell group.
[read-only]
static
BottomAlighmentGridLayout.Alignment. Indicates that a view should be aligned with the bottom edges of the other views in its cell group.
[read-only]
static
CenterGridLayout.Alignment. Indicates that a view should be centered with the other views in its cell group.
ColumnCountint. Returns the current number of columns.
ColumnOrderPreservedbool. Returns whether or not column boundaries are ordered by their grid indices.
[read-only]
static
EndGridLayout.Alignment. Indicates that a view should be aligned with the end edges of the other views in its cell group.
[read-only]
static
FillGridLayout.Alignment. Indicates that a view should expanded to fit the boundaries of its cell group.
[read-only]
static
LeftAlighmentGridLayout.Alignment. Indicates that a view should be aligned with the left edges of the other views in its cell group.
OrientationGridOrientation. Returns the current orientation.
[read-only]
static
RightAlighmentGridLayout.Alignment. Indicates that a view should be aligned with the right edges of the other views in its cell group.
RowCountint. Returns the current number of rows.
RowOrderPreservedbool. Returns whether or not row boundaries are ordered by their grid indices.
[read-only]
static
StartGridLayout.Alignment. Indicates that a view should be aligned with the start edges of the other views in its cell group.
[read-only]
static
TopAlighmentGridLayout.Alignment. Indicates that a view should be aligned with the top edges of the other views in its cell group.
UseDefaultMarginsbool. Returns whether or not this GridLayout will allocate default margins when no corresponding layout parameters are defined.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
InvokeSpec(int) : GridLayout.Spec
Return a Spec, spec, where:
  • spec.span = [start, start + 1]
static
InvokeSpec(int, GridLayout.Alignment) : GridLayout.Spec
Return a Spec, spec, where:
  • spec.span = [start, start + 1]
  • spec.alignment = alignment
static
InvokeSpec(int, int) : GridLayout.Spec
Return a Spec, spec, where:
  • spec.span = [start, start + size]
static
InvokeSpec(int, float) : GridLayout.Spec
Equivalent to: spec(start, 1, weight).
static
InvokeSpec(int, GridLayout.Alignment, float) : GridLayout.Spec
Equivalent to: spec(start, 1, alignment, weight).
static
InvokeSpec(int, int, GridLayout.Alignment) : GridLayout.Spec
Equivalent to: spec(start, size, alignment, 0f).
static
InvokeSpec(int, int, float) : GridLayout.Spec
Equivalent to: spec(start, 1, default_alignment, weight) - where default_alignment is specified in NoType:android/widget/GridLayout$LayoutParams;Href=../../../reference/android/widget/GridLayout.LayoutParams.html.
static
InvokeSpec(int, int, GridLayout.Alignment, float) : GridLayout.Spec
Return a Spec, spec, where:
  • spec.span = [start, start + size]
  • spec.alignment = alignment
  • spec.weight = weight

Protected Methods

override
OnLayout(bool, int, int, int, int)
Called from layout when this view should assign a size and position to each of its children.