public
static
final
class
R.attr
extends Object
java.lang.Object | |
↳ | android.support.v7.gridlayout.R.attr |
Fields | |
---|---|
public
static
int |
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 |
columnCount
The maximum number of columns to create when automatically positioning children. |
public
static
int |
columnOrderPreserved
When set to true, forces column boundaries to appear in the same order as column indices. |
public
static
int |
layout_column
The column boundary delimiting the left of the group of cells occupied by this view. |
public
static
int |
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 |
layout_columnWeight
The relative proportion of horizontal space that should be allocated to this view during excess space distribution. |
public
static
int |
layout_gravity
Gravity specifies how a component should be placed in its group of cells. |
public
static
int |
layout_row
The row boundary delimiting the top of the group of cells occupied by this view. |
public
static
int |
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 |
layout_rowWeight
The relative proportion of vertical space that should be allocated to this view during excess space distribution. |
public
static
int |
orientation
The orientation property is not used during layout. |
public
static
int |
rowCount
The maximum number of rows to create when automatically positioning children. |
public
static
int |
rowOrderPreserved
When set to true, forces row boundaries to appear in the same order as row indices. |
public
static
int |
useDefaultMargins
When set to true, tells GridLayout to use default margins when none are specified in a view's layout parameters. |
Public constructors | |
---|---|
R.attr()
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
int 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.
Constant | Value | Description |
---|---|---|
alignBounds | 0 | Align the bounds of the children.
See ALIGN_BOUNDS . |
alignMargins | 1 | Align the margins of the children.
See ALIGN_MARGINS . |
int columnCount
The maximum number of columns to create when automatically positioning children.
May be an integer value, such as "100
".
int 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
".
int 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
".
int 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
".
int 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
".
int 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.
Constant | Value | Description |
---|---|---|
bottom | 50 | Push object to the bottom of its container, not changing its size. |
center | 11 | Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. |
center_horizontal | 1 | Place object in the horizontal center of its container, not changing its size. |
center_vertical | 10 | Place object in the vertical center of its container, not changing its size. |
clip_horizontal | 8 | 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. |
clip_vertical | 80 | 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. |
end | 800005 | Push object to the end of its container, not changing its size. |
fill | 77 | Grow the horizontal and vertical size of the object if needed so it completely fills its container. |
fill_horizontal | 7 | Grow the horizontal size of the object if needed so it completely fills its container. |
fill_vertical | 70 | Grow the vertical size of the object if needed so it completely fills its container. |
left | 3 | Push object to the left of its container, not changing its size. |
right | 5 | Push object to the right of its container, not changing its size. |
start | 800003 | Push object to the beginning of its container, not changing its size. |
top | 30 | Push object to the top of its container, not changing its size. |
int 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
".
int 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
".
int 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
".
int 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.
Constant | Value | Description |
---|---|---|
horizontal | 0 | Defines an horizontal widget. |
vertical | 1 | Defines a vertical widget. |
int rowCount
The maximum number of rows to create when automatically positioning children.
May be an integer value, such as "100
".
int 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
".
int 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
".
R.attr ()