to top
Android APIs
public static final class

R.styleable

extends Object
java.lang.Object
   ↳ android.support.v7.gridlayout.R.styleable

Summary

Constants
int GridLayout_Layout_android_layout_height

This symbol is the offset where the layout_height attribute's value can be found in the GridLayout_Layout array.

int GridLayout_Layout_android_layout_margin

Specifies extra space on the left, top, right and bottom sides of this view.

int GridLayout_Layout_android_layout_marginBottom

Specifies extra space on the bottom side of this view.

int GridLayout_Layout_android_layout_marginLeft

Specifies extra space on the left side of this view.

int GridLayout_Layout_android_layout_marginRight

Specifies extra space on the right side of this view.

int GridLayout_Layout_android_layout_marginTop

Specifies extra space on the top side of this view.

int GridLayout_Layout_android_layout_width

support versions.

int GridLayout_Layout_layout_column

The column boundary delimiting the left of the group of cells occupied by this view.

int GridLayout_Layout_layout_columnSpan

The column span: the difference between the right and left boundaries delimiting the group of cells occupied by this view.

int GridLayout_Layout_layout_gravity

Gravity specifies how a component should be placed in its group of cells.

int GridLayout_Layout_layout_row

END MarginLayout layoutparams The row boundary delimiting the top of the group of cells occupied by this view.

int GridLayout_Layout_layout_rowSpan

The row span: the difference between the bottom and top boundaries delimiting the group of cells occupied by this view.

int GridLayout_alignmentMode

When set to alignMargins, causes alignment to take place between the outer boundary of a view, as defined by its margins.

int GridLayout_columnCount

The maximum number of columns to create when automatically positioning children.

int GridLayout_columnOrderPreserved

When set to true, forces column boundaries to appear in the same order as column indices.

int GridLayout_orientation

support versions.

int GridLayout_rowCount

The maximum number of rows to create when automatically positioning children.

int GridLayout_rowOrderPreserved

When set to true, forces row boundaries to appear in the same order as row indices.

int GridLayout_useDefaultMargins

When set to true, tells GridLayout to use default margins when none are specified in a view's layout parameters.

Fields
public static final int[] GridLayout Attributes that can be used with a GridLayout.
public static final int[] GridLayout_Layout Attributes that can be used with a GridLayout_Layout.
Public Constructors
R.styleable()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int GridLayout_Layout_android_layout_height

This symbol is the offset where the layout_height attribute's value can be found in the GridLayout_Layout array.

Constant Value: 1 (0x00000001)

public static final int GridLayout_Layout_android_layout_margin

Specifies extra space on the left, top, right and bottom sides of this view. This space is outside this view's bounds.

This corresponds to the global attribute resource symbol layout_margin.

Constant Value: 2 (0x00000002)

public static final int GridLayout_Layout_android_layout_marginBottom

Specifies extra space on the bottom side of this view. This space is outside this view's bounds.

This corresponds to the global attribute resource symbol layout_marginBottom.

Constant Value: 6 (0x00000006)

public static final int GridLayout_Layout_android_layout_marginLeft

Specifies extra space on the left side of this view. This space is outside this view's bounds.

This corresponds to the global attribute resource symbol layout_marginLeft.

Constant Value: 3 (0x00000003)

public static final int GridLayout_Layout_android_layout_marginRight

Specifies extra space on the right side of this view. This space is outside this view's bounds.

This corresponds to the global attribute resource symbol layout_marginRight.

Constant Value: 5 (0x00000005)

public static final int GridLayout_Layout_android_layout_marginTop

Specifies extra space on the top side of this view. This space is outside this view's bounds.

This corresponds to the global attribute resource symbol layout_marginTop.

Constant Value: 4 (0x00000004)

public static final int GridLayout_Layout_android_layout_width

support versions. All attributes not present in MarginLayout are redefined in the support library name space. START MarginLayout layoutparams

This corresponds to the global attribute resource symbol layout_width.

Constant Value: 0 (0x00000000)

public static final int GridLayout_Layout_layout_column

The column boundary delimiting the left of the group of cells occupied by this view.

Must 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.

This is a private symbol.

Constant Value: 9 (0x00000009)

public static final int GridLayout_Layout_layout_columnSpan

The column span: the difference between the right and left boundaries delimiting the group of cells occupied by this view. The default is one. See GridLayout.Spec.

Must 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.

This is a private symbol.

Constant Value: 10 (0x0000000a)

public static final int GridLayout_Layout_layout_gravity

Gravity specifies how a component should be placed in its group of cells. The default is LEFT | BASELINE. See setGravity(int).

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
top0x30 Push object to the top of its container, not changing its size.
bottom0x50 Push object to the bottom of its container, not changing its size.
left0x03 Push object to the left of its container, not changing its size.
right0x05 Push object to the right of its container, not changing its size.
center_vertical0x10 Place object in the vertical center of its container, not changing its size.
fill_vertical0x70 Grow the vertical size of the object if needed so it completely fills its container.
center_horizontal0x01 Place object in the horizontal center of its container, not changing its size.
fill_horizontal0x07 Grow the horizontal size of the object if needed so it completely fills its container.
center0x11 Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
fill0x77 Grow the horizontal and vertical size of the object if needed so it completely fills its container.
clip_vertical0x80 Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will clip the bottom edge, a bottom gravity will clip the top edge, and neither will clip both edges.
clip_horizontal0x08 Additional option that can be set to have the left and/or right edges of the child clipped to its container's bounds. The clip will be based on the horizontal gravity: a left gravity will clip the right edge, a right gravity will clip the left edge, and neither will clip both edges.
start0x00800003 Push object to the beginning of its container, not changing its size.
end0x00800005 Push object to the end of its container, not changing its size.

This is a private symbol.

Constant Value: 11 (0x0000000b)

public static final int GridLayout_Layout_layout_row

END MarginLayout layoutparams The row boundary delimiting the top of the group of cells occupied by this view.

Must 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.

This is a private symbol.

Constant Value: 7 (0x00000007)

public static final int GridLayout_Layout_layout_rowSpan

The row span: the difference between the bottom and top boundaries delimiting the group of cells occupied by this view. The default is one. See GridLayout.Spec.

Must 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.

This is a private symbol.

Constant Value: 8 (0x00000008)

public static final int GridLayout_alignmentMode

When set to alignMargins, causes alignment to take place between the outer boundary of a view, as defined by its margins. When set to alignBounds, causes alignment to take place between the edges of the view. The default is alignMargins. See setAlignmentMode(int).

Must be one of the following constant values.

ConstantValueDescription
alignBounds0 Align the bounds of the children. See ALIGN_BOUNDS.
alignMargins1 Align the margins of the children. See ALIGN_MARGINS.

This is a private symbol.

Constant Value: 4 (0x00000004)

public static final int GridLayout_columnCount

The maximum number of columns to create when automatically positioning children.

Must 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.

This is a private symbol.

Constant Value: 2 (0x00000002)

public static final int GridLayout_columnOrderPreserved

When set to true, forces column boundaries to appear in the same order as column indices. The default is true. See setColumnOrderPreserved(boolean).

Must be a boolean value, either "true" or "false".

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.

This is a private symbol.

Constant Value: 6 (0x00000006)

public static final int GridLayout_orientation

support versions. All attributes not present in ViewGroup/View are redefined in the support library namespace. The orientation property is not used during layout. It is only used to allocate row and column parameters when they are not specified by its children's layout parameters. GridLayout works like LinearLayout in this case; putting all the components either in a single row or in a single column - depending on the value of this flag. In the horizontal case, a columnCount property may be additionally supplied to force new rows to be created when a row is full. The rowCount attribute may be used similarly in the vertical case. The default is horizontal.

Must be one of the following constant values.

ConstantValueDescription
horizontal0 Defines an horizontal widget.
vertical1 Defines a vertical widget.

This is a private symbol.

Constant Value: 0 (0x00000000)

public static final int GridLayout_rowCount

The maximum number of rows to create when automatically positioning children.

Must 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.

This is a private symbol.

Constant Value: 1 (0x00000001)

public static final int GridLayout_rowOrderPreserved

When set to true, forces row boundaries to appear in the same order as row indices. The default is true. See setRowOrderPreserved(boolean).

Must be a boolean value, either "true" or "false".

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.

This is a private symbol.

Constant Value: 5 (0x00000005)

public static final int GridLayout_useDefaultMargins

When set to true, tells GridLayout to use default margins when none are specified in a view's layout parameters. The default value is false. See setUseDefaultMargins(boolean).

Must be a boolean value, either "true" or "false".

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.

This is a private symbol.

Constant Value: 3 (0x00000003)

Fields

public static final int[] GridLayout

Attributes that can be used with a GridLayout.

Includes the following attributes:

AttributeDescription
android.support.v7.gridlayout:alignmentMode When set to alignMargins, causes alignment to take place between the outer boundary of a view, as defined by its margins.
android.support.v7.gridlayout:columnCount The maximum number of columns to create when automatically positioning children.
android.support.v7.gridlayout:columnOrderPreserved When set to true, forces column boundaries to appear in the same order as column indices.
android.support.v7.gridlayout:orientation support versions.
android.support.v7.gridlayout:rowCount The maximum number of rows to create when automatically positioning children.
android.support.v7.gridlayout:rowOrderPreserved When set to true, forces row boundaries to appear in the same order as row indices.
android.support.v7.gridlayout:useDefaultMargins When set to true, tells GridLayout to use default margins when none are specified in a view's layout parameters.

public static final int[] GridLayout_Layout

Attributes that can be used with a GridLayout_Layout.

Includes the following attributes:

AttributeDescription
android:layout_height
android:layout_margin Specifies extra space on the left, top, right and bottom sides of this view.
android:layout_marginBottom Specifies extra space on the bottom side of this view.
android:layout_marginLeft Specifies extra space on the left side of this view.
android:layout_marginRight Specifies extra space on the right side of this view.
android:layout_marginTop Specifies extra space on the top side of this view.
android:layout_width support versions.
android.support.v7.gridlayout:layout_column The column boundary delimiting the left of the group of cells occupied by this view.
android.support.v7.gridlayout:layout_columnSpan The column span: the difference between the right and left boundaries delimiting the group of cells occupied by this view.
android.support.v7.gridlayout:layout_gravity Gravity specifies how a component should be placed in its group of cells.
android.support.v7.gridlayout:layout_row END MarginLayout layoutparams The row boundary delimiting the top of the group of cells occupied by this view.
android.support.v7.gridlayout:layout_rowSpan The row span: the difference between the bottom and top boundaries delimiting the group of cells occupied by this view.

Public Constructors

public R.styleable ()