Most visited

Recently visited

R.styleable

public static final class R.styleable
extends Object

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


Summary

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

public static int GridLayout_Layout_android_layout_margin

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

public static int GridLayout_Layout_android_layout_marginBottom

Specifies extra space on the bottom side of this view.

public static int GridLayout_Layout_android_layout_marginLeft

Specifies extra space on the left side of this view.

public static int GridLayout_Layout_android_layout_marginRight

Specifies extra space on the right side of this view.

public static int GridLayout_Layout_android_layout_marginTop

Specifies extra space on the top side of this view.

public static int GridLayout_Layout_android_layout_width

START MarginLayout layoutparams

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int GridLayout_Layout_layout_column

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

public static 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.

public static int GridLayout_Layout_layout_columnWeight

The relative proportion of horizontal space that should be allocated to this view during excess space distribution.

public static int GridLayout_Layout_layout_gravity

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

public static int GridLayout_Layout_layout_row

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

public static int GridLayout_Layout_layout_rowSpan

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

public static int GridLayout_Layout_layout_rowWeight

The relative proportion of vertical space that should be allocated to this view during excess space distribution.

public static int GridLayout_alignmentMode

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

public static int GridLayout_columnCount

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

public static int GridLayout_columnOrderPreserved

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

public static int GridLayout_orientation

The orientation property is not used during layout.

public static int GridLayout_rowCount

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

public static int GridLayout_rowOrderPreserved

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

public static int GridLayout_useDefaultMargins

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

Public constructors

R.styleable()

Inherited methods

From class java.lang.Object

Fields

GridLayout

int[] GridLayout

Attributes that can be used with a GridLayout.

Includes the following attributes:

AttributeDescription
android.support.v7.gridlayout:alignmentModeWhen set to alignMargins, causes alignment to take place between the outer boundary of a view, as defined by its margins.
android.support.v7.gridlayout:columnCountThe maximum number of columns to create when automatically positioning children.
android.support.v7.gridlayout:columnOrderPreservedWhen set to true, forces column boundaries to appear in the same order as column indices.
android.support.v7.gridlayout:orientationThe orientation property is not used during layout.
android.support.v7.gridlayout:rowCountThe maximum number of rows to create when automatically positioning children.
android.support.v7.gridlayout:rowOrderPreservedWhen set to true, forces row boundaries to appear in the same order as row indices.
android.support.v7.gridlayout:useDefaultMarginsWhen set to true, tells GridLayout to use default margins when none are specified in a view's layout parameters.

See also:

GridLayout_Layout

int[] GridLayout_Layout

Attributes that can be used with a GridLayout_Layout.

Includes the following attributes:

AttributeDescription
android.support.v7.gridlayout:layout_columnThe column boundary delimiting the left of the group of cells occupied by this view.
android.support.v7.gridlayout:layout_columnSpanThe column span: the difference between the right and left boundaries delimiting the group of cells occupied by this view.
android.support.v7.gridlayout:layout_columnWeightThe relative proportion of horizontal space that should be allocated to this view during excess space distribution.
android.support.v7.gridlayout:layout_gravityGravity specifies how a component should be placed in its group of cells.
android.support.v7.gridlayout:layout_rowThe row boundary delimiting the top of the group of cells occupied by this view.
android.support.v7.gridlayout:layout_rowSpanThe row span: the difference between the top and bottom boundaries delimiting the group of cells occupied by this view.
android.support.v7.gridlayout:layout_rowWeightThe relative proportion of vertical space that should be allocated to this view during excess space distribution.
android:layout_width
android:layout_height
android:layout_margin
android:layout_marginLeft
android:layout_marginTop
android:layout_marginRight
android:layout_marginBottom

See also:

GridLayout_Layout_android_layout_height

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.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Must be one of the following constant values.

ConstantValueDescription
fill_parentffffffff
wrap_contentfffffffe

GridLayout_Layout_android_layout_margin

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.

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

GridLayout_Layout_android_layout_marginBottom

int GridLayout_Layout_android_layout_marginBottom

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

GridLayout_Layout_android_layout_marginLeft

int GridLayout_Layout_android_layout_marginLeft

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

GridLayout_Layout_android_layout_marginRight

int GridLayout_Layout_android_layout_marginRight

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

GridLayout_Layout_android_layout_marginTop

int GridLayout_Layout_android_layout_marginTop

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

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

GridLayout_Layout_android_layout_width

int GridLayout_Layout_android_layout_width

START MarginLayout layoutparams

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

Must be one of the following constant values.

ConstantValueDescription
fill_parentffffffff
wrap_contentfffffffe

GridLayout_Layout_layout_column

int GridLayout_Layout_layout_column

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

May be an integer value, such as "100".

GridLayout_Layout_layout_columnSpan

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.

May be an integer value, such as "100".

GridLayout_Layout_layout_columnWeight

int GridLayout_Layout_layout_columnWeight

The relative proportion of horizontal space that should be allocated to this view during excess space distribution.

May be a floating point value, such as "1.2".

GridLayout_Layout_layout_gravity

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
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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.
clip_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.

GridLayout_Layout_layout_row

int GridLayout_Layout_layout_row

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

May be an integer value, such as "100".

GridLayout_Layout_layout_rowSpan

int GridLayout_Layout_layout_rowSpan

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

May be an integer value, such as "100".

GridLayout_Layout_layout_rowWeight

int GridLayout_Layout_layout_rowWeight

The relative proportion of vertical space that should be allocated to this view during excess space distribution.

May be a floating point value, such as "1.2".

GridLayout_alignmentMode

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
alignBounds0Align the bounds of the children. See ALIGN_BOUNDS.
alignMargins1Align the margins of the children. See ALIGN_MARGINS.

GridLayout_columnCount

int GridLayout_columnCount

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

May be an integer value, such as "100".

GridLayout_columnOrderPreserved

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

May be a boolean value, such as "true" or "false".

GridLayout_orientation

int GridLayout_orientation

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
horizontal0Defines an horizontal widget.
vertical1Defines a vertical widget.

GridLayout_rowCount

int GridLayout_rowCount

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

May be an integer value, such as "100".

GridLayout_rowOrderPreserved

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

May be a boolean value, such as "true" or "false".

GridLayout_useDefaultMargins

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

May be a boolean value, such as "true" or "false".

Public constructors

R.styleable

R.styleable ()

Hooray!