# GridLayout

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:gridlayout-v7:28.0.0-alpha1  
Summary:[Nested Classes](https://developer.android.com/reference/android/support/v7/widget/GridLayout#nestedclasses)\|[Constants](https://developer.android.com/reference/android/support/v7/widget/GridLayout#constants)\|[Inherited Constants](https://developer.android.com/reference/android/support/v7/widget/GridLayout#inhconstants)\|[Fields](https://developer.android.com/reference/android/support/v7/widget/GridLayout#lfields)\|[Inherited Fields](https://developer.android.com/reference/android/support/v7/widget/GridLayout#inhfields)\|[Ctors](https://developer.android.com/reference/android/support/v7/widget/GridLayout#pubctors)\|[Methods](https://developer.android.com/reference/android/support/v7/widget/GridLayout#pubmethods)\|[Protected Methods](https://developer.android.com/reference/android/support/v7/widget/GridLayout#promethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v7/widget/GridLayout#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)  

# GridLayout

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


class
GridLayout
`  
`


``


``

extends `[ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)`


``


`

|---|---|---|--------------------------------------|
| java.lang.Object                              ||||
| ↳ | [android.view.View](https://developer.android.com/reference/android/view/View.html) |||
|   | ↳ | [android.view.ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html) ||
|   |   | ↳ | android.support.v7.widget.GridLayout |

<br />

*** ** * ** ***

A layout that places its children in a rectangular*grid*.

The grid is composed of a set of infinitely thin lines that separate the viewing area into*cells* . Throughout the API, grid lines are referenced by grid*indices* . A grid with`N`columns has`N + 1`grid indices that run from`0`through`N`inclusive. Regardless of how GridLayout is configured, grid index`0`is fixed to the leading edge of the container and grid index`N`is fixed to its trailing edge (after padding is taken into account).

#### Row and Column Specs

Children occupy one or more contiguous cells, as defined by their[rowSpec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#rowSpec)and[columnSpec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#columnSpec)layout parameters. Each spec defines the set of rows or columns that are to be occupied; and how children should be aligned within the resulting group of cells. Although cells do not normally overlap in a GridLayout, GridLayout does not prevent children being defined to occupy the same cell or group of cells. In this case however, there is no guarantee that children will not themselves overlap after the layout operation completes.

#### Default Cell Assignment

If a child does not specify the row and column indices of the cell it wishes to occupy, GridLayout assigns cell locations automatically using its:[orientation](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setOrientation(int)),[rowCount](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setRowCount(int))and[columnCount](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setColumnCount(int))properties.

#### Space

Space between children may be specified either by using instances of the dedicated[Space](https://developer.android.com/reference/android/widget/Space.html)view or by setting the[leftMargin](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#leftMargin),[topMargin](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#topMargin),[rightMargin](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#rightMargin)and[bottomMargin](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html#bottomMargin)layout parameters. When the[useDefaultMargins](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setUseDefaultMargins(boolean))property is set, default margins around children are automatically allocated based on the prevailing UI style guide for the platform. Each of the margins so defined may be independently overridden by an assignment to the appropriate layout parameter. Default values will generally produce a reasonable spacing between components but values may change between different releases of the platform.

#### Excess Space Distribution

GridLayout's distribution of excess space accommodates the principle of weight. In the event that no weights are specified, columns and rows are taken as flexible if their views specify some form of alignment within their groups.

The flexibility of a view is therefore influenced by its alignment which is, in turn, typically defined by setting the[gravity](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#setGravity(int))property of the child's layout parameters. If either a weight or alignment were defined along a given axis then the component is taken as*flexible* in that direction. If no weight or alignment was set, the component is instead assumed to be*inflexible*.

Multiple components in the same row or column group are considered to act in*parallel* . Such a group is flexible only if*all* of the components within it are flexible. Row and column groups that sit either side of a common boundary are instead considered to act in*series* . The composite group made of these two elements is flexible if*one*of its elements is flexible.

To make a column stretch, make sure all of the components inside it define a weight or a gravity. To prevent a column from stretching, ensure that one of the components in the column does not define a weight or a gravity.

When the principle of flexibility does not provide complete disambiguation, GridLayout's algorithms favour rows and columns that are closer to its*right* and*bottom*edges. To be more precise, GridLayout treats each of its layout parameters as a constraint in the a set of variables that define the grid-lines along a given axis. During layout, GridLayout solves the constraints so as to return the unique solution to those constraints for which all variables are less-than-or-equal-to the corresponding value in any other valid solution.

#### Interpretation of GONE

For layout purposes, GridLayout treats views whose visibility status is[GONE](https://developer.android.com/reference/android/view/View.html#GONE), as having zero width and height. This is subtly different from the policy of ignoring views that are marked as GONE outright. If, for example, a gone-marked view was alone in a column, that column would itself collapse to zero width if and only if no gravity was defined on the view. If gravity was defined, then the gone-marked view has no effect on the layout and the container should be laid out as if the view had never been added to it. GONE views are taken to have zero weight during excess space distribution.

These statements apply equally to rows as well as columns, and to groups of rows or columns.

See[GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams)for a full description of the layout parameters used by GridLayout.

## Summary

|                                                                                                    ### Nested classes                                                                                                     ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) Alignments specify where a view should be placed within a cell group and what size it should be. |
| ` class` | [GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams) Layout information associated with each of the children of a GridLayout.                   |
| ` class` | [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec) A Spec defines the horizontal or vertical characteristics of a group of cells.                             |

|                                                                                                                       ### Constants                                                                                                                        ||
|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [ALIGN_BOUNDS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_BOUNDS) This constant is an[alignmentMode](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int)).   |
| `int` | [ALIGN_MARGINS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_MARGINS) This constant is an[alignmentMode](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int)). |
| `int` | [HORIZONTAL](https://developer.android.com/reference/android/support/v7/widget/GridLayout#HORIZONTAL) The horizontal orientation.                                                                                                                   |
| `int` | [UNDEFINED](https://developer.android.com/reference/android/support/v7/widget/GridLayout#UNDEFINED) The constant used to indicate that a value is undefined.                                                                                        |
| `int` | [VERTICAL](https://developer.android.com/reference/android/support/v7/widget/GridLayout#VERTICAL) The vertical orientation.                                                                                                                         |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From class` android.view.ViewGroup ` |-------|-------------------------------------| | `int` | `CLIP_TO_PADDING_MASK` <br />       | | `int` | `FOCUS_AFTER_DESCENDANTS` <br />    | | `int` | `FOCUS_BEFORE_DESCENDANTS` <br />   | | `int` | `FOCUS_BLOCK_DESCENDANTS` <br />    | | `int` | `LAYOUT_MODE_CLIP_BOUNDS` <br />    | | `int` | `LAYOUT_MODE_OPTICAL_BOUNDS` <br /> | | `int` | `PERSISTENT_ALL_CACHES` <br />      | | `int` | `PERSISTENT_ANIMATION_CACHE` <br /> | | `int` | `PERSISTENT_NO_CACHE` <br />        | | `int` | `PERSISTENT_SCROLLING_CACHE` <br /> |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From class` android.view.View ` |----------|----------------------------------------------------------| | `int`    | `ACCESSIBILITY_LIVE_REGION_ASSERTIVE` <br />             | | `int`    | `ACCESSIBILITY_LIVE_REGION_NONE` <br />                  | | `int`    | `ACCESSIBILITY_LIVE_REGION_POLITE` <br />                | | `int`    | `AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS` <br />       | | `String` | `AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE` <br />       | | `String` | `AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY` <br />        | | `String` | `AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH` <br />      | | `String` | `AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR` <br />       | | `String` | `AUTOFILL_HINT_CREDIT_CARD_NUMBER` <br />                | | `String` | `AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE` <br />         | | `String` | `AUTOFILL_HINT_EMAIL_ADDRESS` <br />                     | | `String` | `AUTOFILL_HINT_NAME` <br />                              | | `String` | `AUTOFILL_HINT_PASSWORD` <br />                          | | `String` | `AUTOFILL_HINT_PHONE` <br />                             | | `String` | `AUTOFILL_HINT_POSTAL_ADDRESS` <br />                    | | `String` | `AUTOFILL_HINT_POSTAL_CODE` <br />                       | | `String` | `AUTOFILL_HINT_USERNAME` <br />                          | | `int`    | `AUTOFILL_TYPE_DATE` <br />                              | | `int`    | `AUTOFILL_TYPE_LIST` <br />                              | | `int`    | `AUTOFILL_TYPE_NONE` <br />                              | | `int`    | `AUTOFILL_TYPE_TEXT` <br />                              | | `int`    | `AUTOFILL_TYPE_TOGGLE` <br />                            | | `int`    | `DRAG_FLAG_GLOBAL` <br />                                | | `int`    | `DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION` <br />     | | `int`    | `DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION` <br />          | | `int`    | `DRAG_FLAG_GLOBAL_URI_READ` <br />                       | | `int`    | `DRAG_FLAG_GLOBAL_URI_WRITE` <br />                      | | `int`    | `DRAG_FLAG_OPAQUE` <br />                                | | `int`    | `DRAWING_CACHE_QUALITY_AUTO` <br />                      | | `int`    | `DRAWING_CACHE_QUALITY_HIGH` <br />                      | | `int`    | `DRAWING_CACHE_QUALITY_LOW` <br />                       | | `int`    | `FIND_VIEWS_WITH_CONTENT_DESCRIPTION` <br />             | | `int`    | `FIND_VIEWS_WITH_TEXT` <br />                            | | `int`    | `FOCUSABLE` <br />                                       | | `int`    | `FOCUSABLES_ALL` <br />                                  | | `int`    | `FOCUSABLES_TOUCH_MODE` <br />                           | | `int`    | `FOCUSABLE_AUTO` <br />                                  | | `int`    | `FOCUS_BACKWARD` <br />                                  | | `int`    | `FOCUS_DOWN` <br />                                      | | `int`    | `FOCUS_FORWARD` <br />                                   | | `int`    | `FOCUS_LEFT` <br />                                      | | `int`    | `FOCUS_RIGHT` <br />                                     | | `int`    | `FOCUS_UP` <br />                                        | | `int`    | `GONE` <br />                                            | | `int`    | `HAPTIC_FEEDBACK_ENABLED` <br />                         | | `int`    | `IMPORTANT_FOR_ACCESSIBILITY_AUTO` <br />                | | `int`    | `IMPORTANT_FOR_ACCESSIBILITY_NO` <br />                  | | `int`    | `IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS` <br /> | | `int`    | `IMPORTANT_FOR_ACCESSIBILITY_YES` <br />                 | | `int`    | `IMPORTANT_FOR_AUTOFILL_AUTO` <br />                     | | `int`    | `IMPORTANT_FOR_AUTOFILL_NO` <br />                       | | `int`    | `IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS` <br />   | | `int`    | `IMPORTANT_FOR_AUTOFILL_YES` <br />                      | | `int`    | `IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS` <br />  | | `int`    | `INVISIBLE` <br />                                       | | `int`    | `KEEP_SCREEN_ON` <br />                                  | | `int`    | `LAYER_TYPE_HARDWARE` <br />                             | | `int`    | `LAYER_TYPE_NONE` <br />                                 | | `int`    | `LAYER_TYPE_SOFTWARE` <br />                             | | `int`    | `LAYOUT_DIRECTION_INHERIT` <br />                        | | `int`    | `LAYOUT_DIRECTION_LOCALE` <br />                         | | `int`    | `LAYOUT_DIRECTION_LTR` <br />                            | | `int`    | `LAYOUT_DIRECTION_RTL` <br />                            | | `int`    | `MEASURED_HEIGHT_STATE_SHIFT` <br />                     | | `int`    | `MEASURED_SIZE_MASK` <br />                              | | `int`    | `MEASURED_STATE_MASK` <br />                             | | `int`    | `MEASURED_STATE_TOO_SMALL` <br />                        | | `int`    | `NOT_FOCUSABLE` <br />                                   | | `int`    | `NO_ID` <br />                                           | | `int`    | `OVER_SCROLL_ALWAYS` <br />                              | | `int`    | `OVER_SCROLL_IF_CONTENT_SCROLLS` <br />                  | | `int`    | `OVER_SCROLL_NEVER` <br />                               | | `int`    | `SCREEN_STATE_OFF` <br />                                | | `int`    | `SCREEN_STATE_ON` <br />                                 | | `int`    | `SCROLLBARS_INSIDE_INSET` <br />                         | | `int`    | `SCROLLBARS_INSIDE_OVERLAY` <br />                       | | `int`    | `SCROLLBARS_OUTSIDE_INSET` <br />                        | | `int`    | `SCROLLBARS_OUTSIDE_OVERLAY` <br />                      | | `int`    | `SCROLLBAR_POSITION_DEFAULT` <br />                      | | `int`    | `SCROLLBAR_POSITION_LEFT` <br />                         | | `int`    | `SCROLLBAR_POSITION_RIGHT` <br />                        | | `int`    | `SCROLL_AXIS_HORIZONTAL` <br />                          | | `int`    | `SCROLL_AXIS_NONE` <br />                                | | `int`    | `SCROLL_AXIS_VERTICAL` <br />                            | | `int`    | `SCROLL_INDICATOR_BOTTOM` <br />                         | | `int`    | `SCROLL_INDICATOR_END` <br />                            | | `int`    | `SCROLL_INDICATOR_LEFT` <br />                           | | `int`    | `SCROLL_INDICATOR_RIGHT` <br />                          | | `int`    | `SCROLL_INDICATOR_START` <br />                          | | `int`    | `SCROLL_INDICATOR_TOP` <br />                            | | `int`    | `SOUND_EFFECTS_ENABLED` <br />                           | | `int`    | `STATUS_BAR_HIDDEN` <br />                               | | `int`    | `STATUS_BAR_VISIBLE` <br />                              | | `int`    | `SYSTEM_UI_FLAG_FULLSCREEN` <br />                       | | `int`    | `SYSTEM_UI_FLAG_HIDE_NAVIGATION` <br />                  | | `int`    | `SYSTEM_UI_FLAG_IMMERSIVE` <br />                        | | `int`    | `SYSTEM_UI_FLAG_IMMERSIVE_STICKY` <br />                 | | `int`    | `SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN` <br />                | | `int`    | `SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION` <br />           | | `int`    | `SYSTEM_UI_FLAG_LAYOUT_STABLE` <br />                    | | `int`    | `SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR` <br />             | | `int`    | `SYSTEM_UI_FLAG_LIGHT_STATUS_BAR` <br />                 | | `int`    | `SYSTEM_UI_FLAG_LOW_PROFILE` <br />                      | | `int`    | `SYSTEM_UI_FLAG_VISIBLE` <br />                          | | `int`    | `SYSTEM_UI_LAYOUT_FLAGS` <br />                          | | `int`    | `TEXT_ALIGNMENT_CENTER` <br />                           | | `int`    | `TEXT_ALIGNMENT_GRAVITY` <br />                          | | `int`    | `TEXT_ALIGNMENT_INHERIT` <br />                          | | `int`    | `TEXT_ALIGNMENT_TEXT_END` <br />                         | | `int`    | `TEXT_ALIGNMENT_TEXT_START` <br />                       | | `int`    | `TEXT_ALIGNMENT_VIEW_END` <br />                         | | `int`    | `TEXT_ALIGNMENT_VIEW_START` <br />                       | | `int`    | `TEXT_DIRECTION_ANY_RTL` <br />                          | | `int`    | `TEXT_DIRECTION_FIRST_STRONG` <br />                     | | `int`    | `TEXT_DIRECTION_FIRST_STRONG_LTR` <br />                 | | `int`    | `TEXT_DIRECTION_FIRST_STRONG_RTL` <br />                 | | `int`    | `TEXT_DIRECTION_INHERIT` <br />                          | | `int`    | `TEXT_DIRECTION_LOCALE` <br />                           | | `int`    | `TEXT_DIRECTION_LTR` <br />                              | | `int`    | `TEXT_DIRECTION_RTL` <br />                              | | `String` | `VIEW_LOG_TAG` <br />                                    | | `int`    | `VISIBLE` <br />                                         | |

|                                                                                                                                                                ### Fields                                                                                                                                                                 ||
|---------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) | [BASELINE](https://developer.android.com/reference/android/support/v7/widget/GridLayout#BASELINE) Indicates that a view should be aligned with the*baselines*of the other views in its cell group. |
| ` public static final `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) | [BOTTOM](https://developer.android.com/reference/android/support/v7/widget/GridLayout#BOTTOM) Indicates that a view should be aligned with the*bottom*edges of the other views in its cell group.  |
| ` public static final `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) | [CENTER](https://developer.android.com/reference/android/support/v7/widget/GridLayout#CENTER) Indicates that a view should be*centered*with the other views in its cell group.                     |
| ` public static final `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) | [END](https://developer.android.com/reference/android/support/v7/widget/GridLayout#END) Indicates that a view should be aligned with the*end*edges of the other views in its cell group.           |
| ` public static final `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) | [FILL](https://developer.android.com/reference/android/support/v7/widget/GridLayout#FILL) Indicates that a view should expanded to fit the boundaries of its cell group.                           |
| ` public static final `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) | [LEFT](https://developer.android.com/reference/android/support/v7/widget/GridLayout#LEFT) Indicates that a view should be aligned with the*left*edges of the other views in its cell group.        |
| ` public static final `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) | [RIGHT](https://developer.android.com/reference/android/support/v7/widget/GridLayout#RIGHT) Indicates that a view should be aligned with the*right*edges of the other views in its cell group.     |
| ` public static final `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) | [START](https://developer.android.com/reference/android/support/v7/widget/GridLayout#START) Indicates that a view should be aligned with the*start*edges of the other views in its cell group.     |
| ` public static final `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment) | [TOP](https://developer.android.com/reference/android/support/v7/widget/GridLayout#TOP) Indicates that a view should be aligned with the*top*edges of the other views in its cell group.           |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ### Inherited fields                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From class` android.view.View ` |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------| | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `ALPHA` <br />                                                     | | ` protected static final int[]`                                                                                                                                                          | `EMPTY_STATE_SET` <br />                                           | | ` protected static final int[]`                                                                                                                                                          | `ENABLED_FOCUSED_SELECTED_STATE_SET` <br />                        | | ` protected static final int[]`                                                                                                                                                          | `ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` <br />         | | ` protected static final int[]`                                                                                                                                                          | `ENABLED_FOCUSED_STATE_SET` <br />                                 | | ` protected static final int[]`                                                                                                                                                          | `ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET` <br />                  | | ` protected static final int[]`                                                                                                                                                          | `ENABLED_SELECTED_STATE_SET` <br />                                | | ` protected static final int[]`                                                                                                                                                          | `ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET` <br />                 | | ` protected static final int[]`                                                                                                                                                          | `ENABLED_STATE_SET` <br />                                         | | ` protected static final int[]`                                                                                                                                                          | `ENABLED_WINDOW_FOCUSED_STATE_SET` <br />                          | | ` protected static final int[]`                                                                                                                                                          | `FOCUSED_SELECTED_STATE_SET` <br />                                | | ` protected static final int[]`                                                                                                                                                          | `FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` <br />                 | | ` protected static final int[]`                                                                                                                                                          | `FOCUSED_STATE_SET` <br />                                         | | ` protected static final int[]`                                                                                                                                                          | `FOCUSED_WINDOW_FOCUSED_STATE_SET` <br />                          | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET` <br />                | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` <br /> | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_ENABLED_FOCUSED_STATE_SET` <br />                         | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET` <br />          | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_ENABLED_SELECTED_STATE_SET` <br />                        | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET` <br />         | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_ENABLED_STATE_SET` <br />                                 | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET` <br />                  | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_FOCUSED_SELECTED_STATE_SET` <br />                        | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET` <br />         | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_FOCUSED_STATE_SET` <br />                                 | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET` <br />                  | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_SELECTED_STATE_SET` <br />                                | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET` <br />                 | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_STATE_SET` <br />                                         | | ` protected static final int[]`                                                                                                                                                          | `PRESSED_WINDOW_FOCUSED_STATE_SET` <br />                          | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `ROTATION` <br />                                                  | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `ROTATION_X` <br />                                                | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `ROTATION_Y` <br />                                                | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `SCALE_X` <br />                                                   | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `SCALE_Y` <br />                                                   | | ` protected static final int[]`                                                                                                                                                          | `SELECTED_STATE_SET` <br />                                        | | ` protected static final int[]`                                                                                                                                                          | `SELECTED_WINDOW_FOCUSED_STATE_SET` <br />                         | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `TRANSLATION_X` <br />                                             | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `TRANSLATION_Y` <br />                                             | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `TRANSLATION_Z` <br />                                             | | ` protected static final int[]`                                                                                                                                                          | `WINDOW_FOCUSED_STATE_SET` <br />                                  | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `X` <br />                                                         | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `Y` <br />                                                         | | ` public static final `[Property](https://developer.android.com/reference/android/util/Property.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, Float>` | `Z` <br />                                                         | |

|                                                                                                                                                                                 ### Public constructors                                                                                                                                                                                 ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[GridLayout](https://developer.android.com/reference/android/support/v7/widget/GridLayout#GridLayout(android.content.Context, android.util.AttributeSet, int))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs, int defStyle) ` <br /> |
| ` `[GridLayout](https://developer.android.com/reference/android/support/v7/widget/GridLayout#GridLayout(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) ` <br />                    |
| ` `[GridLayout](https://developer.android.com/reference/android/support/v7/widget/GridLayout#GridLayout(android.content.Context))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context) ` <br />                                                                                                                                               |

|                                                                                                                                                                                                                                                                                                                                                            ### Public methods                                                                                                                                                                                                                                                                                                                                                             ||
|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams) | ` `[generateLayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout#generateLayoutParams(android.util.AttributeSet))`(`[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) `                                                                                                                                                                                                                                                                                                                                                       |
| ` int`                                                                                                                  | ` `[getAlignmentMode](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getAlignmentMode())`() ` Returns the alignment mode.                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` int`                                                                                                                  | ` `[getColumnCount](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getColumnCount())`() ` Returns the current number of columns.                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` int`                                                                                                                  | ` `[getOrientation](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getOrientation())`() ` Returns the current orientation.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` `[Printer](https://developer.android.com/reference/android/util/Printer.html)                                         | ` `[getPrinter](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getPrinter())`() ` Return the printer that will log diagnostics from this layout.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` int`                                                                                                                  | ` `[getRowCount](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getRowCount())`() ` Returns the current number of rows.                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` boolean`                                                                                                              | ` `[getUseDefaultMargins](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getUseDefaultMargins())`() ` Returns whether or not this GridLayout will allocate default margins when no corresponding layout parameters are defined.                                                                                                                                                                                                                                                                                                                                                    |
| ` boolean`                                                                                                              | ` `[isColumnOrderPreserved](https://developer.android.com/reference/android/support/v7/widget/GridLayout#isColumnOrderPreserved())`() ` Returns whether or not column boundaries are ordered by their grid indices.                                                                                                                                                                                                                                                                                                                                                                                              |
| ` boolean`                                                                                                              | ` `[isRowOrderPreserved](https://developer.android.com/reference/android/support/v7/widget/GridLayout#isRowOrderPreserved())`() ` Returns whether or not row boundaries are ordered by their grid indices.                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` void`                                                                                                                 | ` `[requestLayout](https://developer.android.com/reference/android/support/v7/widget/GridLayout#requestLayout())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` void`                                                                                                                 | ` `[setAlignmentMode](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int))`(int alignmentMode) ` Sets the alignment mode to be used for all of the alignments between the children of this container.                                                                                                                                                                                                                                                                                                                                                             |
| ` void`                                                                                                                 | ` `[setColumnCount](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setColumnCount(int))`(int columnCount) ` ColumnCount is used only to generate default column/column indices when they are not specified by a component's layout parameters.                                                                                                                                                                                                                                                                                                                                     |
| ` void`                                                                                                                 | ` `[setColumnOrderPreserved](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setColumnOrderPreserved(boolean))`(boolean columnOrderPreserved) ` When this property is`true`, GridLayout is forced to place the column boundaries so that their associated grid indices are in ascending order in the view.                                                                                                                                                                                                                                                                          |
| ` void`                                                                                                                 | ` `[setOrientation](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setOrientation(int))`(int orientation) ` GridLayout uses the orientation property for two purposes: - To control the 'direction' in which default row/column indices are generated when they are not specified in a component's layout parameters.<br />                                                                                                                                                                                                                                                        |
| ` void`                                                                                                                 | ` `[setPrinter](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setPrinter(android.util.Printer))`(`[Printer](https://developer.android.com/reference/android/util/Printer.html)` printer) ` Set the printer that will log diagnostics from this layout.                                                                                                                                                                                                                                                                                                                            |
| ` void`                                                                                                                 | ` `[setRowCount](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setRowCount(int))`(int rowCount) ` RowCount is used only to generate default row/column indices when they are not specified by a component's layout parameters.                                                                                                                                                                                                                                                                                                                                                    |
| ` void`                                                                                                                 | ` `[setRowOrderPreserved](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setRowOrderPreserved(boolean))`(boolean rowOrderPreserved) ` When this property is`true`, GridLayout is forced to place the row boundaries so that their associated grid indices are in ascending order in the view.                                                                                                                                                                                                                                                                                      |
| ` void`                                                                                                                 | ` `[setUseDefaultMargins](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setUseDefaultMargins(boolean))`(boolean useDefaultMargins) ` When`true`, GridLayout allocates default margins around children based on the child's visual characteristics.                                                                                                                                                                                                                                                                                                                                |
| ` static `[GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)          | ` `[spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, float))`(int start, float weight) ` Equivalent to:`spec(start, 1, weight)`.                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` static `[GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)          | ` `[spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, int, android.support.v7.widget.GridLayout.Alignment))`(int start, int size, `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment)` alignment) ` Equivalent to:`spec(start, size, alignment, 0f)`.                                                                                                                                                                                                                                                     |
| ` static `[GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)          | ` `[spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, android.support.v7.widget.GridLayout.Alignment))`(int start, `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment)` alignment) ` Return a Spec,`spec`, where: - `spec.span = [start, start + 1]` - `spec.alignment = alignment` To leave the start index undefined, use the value[UNDEFINED](https://developer.android.com/reference/android/support/v7/widget/GridLayout#UNDEFINED).                                                                 |
| ` static `[GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)          | ` `[spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int))`(int start) ` Return a Spec,`spec`, where: - `spec.span = [start, start + 1]` To leave the start index undefined, use the value[UNDEFINED](https://developer.android.com/reference/android/support/v7/widget/GridLayout#UNDEFINED).                                                                                                                                                                                                                                                                            |
| ` static `[GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)          | ` `[spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, int, android.support.v7.widget.GridLayout.Alignment, float))`(int start, int size, `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment)` alignment, float weight) ` Return a Spec,`spec`, where: - `spec.span = [start, start + size]` - `spec.alignment = alignment` - `spec.weight = weight` To leave the start index undefined, use the value[UNDEFINED](https://developer.android.com/reference/android/support/v7/widget/GridLayout#UNDEFINED). |
| ` static `[GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)          | ` `[spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, int, float))`(int start, int size, float weight) ` Equivalent to:`spec(start, 1, default_alignment, weight)`- where`default_alignment`is specified in[GridLayout.LayoutParams](https://developer.android.com/reference/android/widget/GridLayout.LayoutParams.html).                                                                                                                                                                                                                                            |
| ` static `[GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)          | ` `[spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, int))`(int start, int size) ` Return a Spec,`spec`, where: - `spec.span = [start, start + size]` To leave the start index undefined, use the value[UNDEFINED](https://developer.android.com/reference/android/support/v7/widget/GridLayout#UNDEFINED).                                                                                                                                                                                                                                                          |
| ` static `[GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)          | ` `[spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, android.support.v7.widget.GridLayout.Alignment, float))`(int start, `[GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment)` alignment, float weight) ` Equivalent to:`spec(start, 1, alignment, weight)`.                                                                                                                                                                                                                                              |

|                                                                                                                                                                                             ### Protected methods                                                                                                                                                                                              ||
|-------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean`                                                                                                              | ` `[checkLayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout#checkLayoutParams(android.view.ViewGroup.LayoutParams))`(`[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` p) `        |
| ` `[GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams) | ` `[generateDefaultLayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout#generateDefaultLayoutParams())`() `                                                                                                                                     |
| ` `[GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams) | ` `[generateLayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout#generateLayoutParams(android.view.ViewGroup.LayoutParams))`(`[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` lp) ` |
| ` void`                                                                                                                 | ` `[onLayout](https://developer.android.com/reference/android/support/v7/widget/GridLayout#onLayout(boolean, int, int, int, int))`(boolean changed, int left, int top, int right, int bottom) ` <br />                                                                                |
| ` void`                                                                                                                 | ` `[onMeasure](https://developer.android.com/reference/android/support/v7/widget/GridLayout#onMeasure(int, int))`(int widthSpec, int heightSpec) `                                                                                                                                    |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From class` `[android.view.ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)` ` |-----------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                                           | ` addChildrenForAccessibility(ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0) `                                                                                                                                                      | | ` void`                                                                                                                           | ` addFocusables(ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0, int arg1, int arg2) `                                                                                                                                                | | ` void`                                                                                                                           | ` addKeyboardNavigationClusters(Collection<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0, int arg1) `                                                                                                                                         | | ` boolean`                                                                                                                        | ` addStatesFromChildren() `                                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` addTouchables(ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0) `                                                                                                                                                                    | | ` void`                                                                                                                           | ` addView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg1) `                                                                  | | ` void`                                                                                                                           | ` addView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                                                           | | ` void`                                                                                                                           | ` addView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg2) `                                                        | | ` void`                                                                                                                           | ` addView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                     | | ` void`                                                                                                                           | ` addView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, int arg2) `                                                                                                                                                                 | | ` boolean`                                                                                                                        | ` addViewInLayout(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg2, boolean arg3) `                                  | | ` boolean`                                                                                                                        | ` addViewInLayout(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg2) `                                                | | ` void`                                                                                                                           | ` attachLayoutAnimationParameters(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg1, int arg2, int arg3) `                      | | ` void`                                                                                                                           | ` attachViewToParent(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg2) `                                             | | ` void`                                                                                                                           | ` bringChildToFront(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                           | | ` boolean`                                                                                                                        | ` canAnimate() `                                                                                                                                                                                                                                                               | | ` boolean`                                                                                                                        | ` checkLayoutParams(`[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg0) `                                                                                                                                       | | ` void`                                                                                                                           | ` childDrawableStateChanged(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                   | | ` void`                                                                                                                           | ` childHasTransientStateChanged(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, boolean arg1) `                                                                                                                                                 | | ` void`                                                                                                                           | ` cleanupLayoutState(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                          | | ` void`                                                                                                                           | ` clearChildFocus(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                             | | ` void`                                                                                                                           | ` clearDisappearingChildren() `                                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` clearFocus() `                                                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` debug(int arg0) `                                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` detachAllViewsFromParent() `                                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` detachViewFromParent(int arg0) `                                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` detachViewFromParent(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                        | | ` void`                                                                                                                           | ` detachViewsFromParent(int arg0, int arg1) `                                                                                                                                                                                                                                  | | ` `[WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html)                                         | ` dispatchApplyWindowInsets(`[WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html)` arg0) `                                                                                                                                                   | | ` boolean`                                                                                                                        | ` dispatchCapturedPointerEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                  | | ` void`                                                                                                                           | ` dispatchConfigurationChanged(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                                                                                                                                       | | ` void`                                                                                                                           | ` dispatchDisplayHint(int arg0) `                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` dispatchDragEvent(`[DragEvent](https://developer.android.com/reference/android/view/DragEvent.html)` arg0) `                                                                                                                                                                 | | ` void`                                                                                                                           | ` dispatchDraw(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg0) `                                                                                                                                                                        | | ` void`                                                                                                                           | ` dispatchDrawableHotspotChanged(float arg0, float arg1) `                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` dispatchFreezeSelfOnly(`[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html)`<`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`> arg0) `                                                                    | | ` boolean`                                                                                                                        | ` dispatchGenericFocusedEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                   | | ` boolean`                                                                                                                        | ` dispatchGenericPointerEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                   | | ` boolean`                                                                                                                        | ` dispatchHoverEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                            | | ` boolean`                                                                                                                        | ` dispatchKeyEvent(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                                                    | | ` boolean`                                                                                                                        | ` dispatchKeyEventPreIme(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                                              | | ` boolean`                                                                                                                        | ` dispatchKeyShortcutEvent(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                                            | | ` void`                                                                                                                           | ` dispatchPointerCaptureChanged(boolean arg0) `                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` dispatchProvideAutofillStructure(`[ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html)` arg0, int arg1) `                                                                                                                                | | ` void`                                                                                                                           | ` dispatchProvideStructure(`[ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html)` arg0) `                                                                                                                                                  | | ` void`                                                                                                                           | ` dispatchRestoreInstanceState(`[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html)`<`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`> arg0) `                                                              | | ` void`                                                                                                                           | ` dispatchSaveInstanceState(`[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html)`<`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`> arg0) `                                                                 | | ` void`                                                                                                                           | ` dispatchSetActivated(boolean arg0) `                                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` dispatchSetPressed(boolean arg0) `                                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` dispatchSetSelected(boolean arg0) `                                                                                                                                                                                                                                          | | ` void`                                                                                                                           | ` dispatchSystemUiVisibilityChanged(int arg0) `                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` dispatchThawSelfOnly(`[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html)`<`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`> arg0) `                                                                      | | ` boolean`                                                                                                                        | ` dispatchTouchEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                            | | ` boolean`                                                                                                                        | ` dispatchTrackballEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                        | | ` boolean`                                                                                                                        | ` dispatchUnhandledMove(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                                             | | ` void`                                                                                                                           | ` dispatchVisibilityChanged(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                                         | | ` void`                                                                                                                           | ` dispatchWindowFocusChanged(boolean arg0) `                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` dispatchWindowSystemUiVisiblityChanged(int arg0) `                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` dispatchWindowVisibilityChanged(int arg0) `                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                        | ` drawChild(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, long arg2) `                                                                                 | | ` void`                                                                                                                           | ` drawableStateChanged() `                                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` endViewTransition(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                           | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                                         | ` findFocus() `                                                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` findViewsWithText(ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0, CharSequence arg1, int arg2) `                                                                                                                                   | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                                         | ` focusSearch(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                                                       | | ` void`                                                                                                                           | ` focusableViewAvailable(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                      | | ` boolean`                                                                                                                        | ` gatherTransparentRegion(`[Region](https://developer.android.com/reference/android/graphics/Region.html)` arg0) `                                                                                                                                                             | | ` `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)                     | ` generateDefaultLayoutParams() `                                                                                                                                                                                                                                              | | ` `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)                     | ` generateLayoutParams(`[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg0) `                                                                                                                                                        | | ` `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)                     | ` generateLayoutParams(`[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg0) `                                                                                                                                    | | ` CharSequence`                                                                                                                   | ` getAccessibilityClassName() `                                                                                                                                                                                                                                                | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                                         | ` getChildAt(int arg0) `                                                                                                                                                                                                                                                       | | ` int`                                                                                                                            | ` getChildCount() `                                                                                                                                                                                                                                                            | | ` int`                                                                                                                            | ` getChildDrawingOrder(int arg0, int arg1) `                                                                                                                                                                                                                                   | | ` static int`                                                                                                                     | ` getChildMeasureSpec(int arg0, int arg1, int arg2) `                                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` getChildStaticTransformation(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Transformation](https://developer.android.com/reference/android/view/animation/Transformation.html)` arg1) `                                                   | | ` boolean`                                                                                                                        | ` getChildVisibleRect(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1, `[Point](https://developer.android.com/reference/android/graphics/Point.html)` arg2) ` | | ` boolean`                                                                                                                        | ` getClipChildren() `                                                                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` getClipToPadding() `                                                                                                                                                                                                                                                         | | ` int`                                                                                                                            | ` getDescendantFocusability() `                                                                                                                                                                                                                                                | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                                         | ` getFocusedChild() `                                                                                                                                                                                                                                                          | | ` `[LayoutAnimationController](https://developer.android.com/reference/android/view/animation/LayoutAnimationController.html)     | ` getLayoutAnimation() `                                                                                                                                                                                                                                                       | | ` `[Animation.AnimationListener](https://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html) | ` getLayoutAnimationListener() `                                                                                                                                                                                                                                               | | ` int`                                                                                                                            | ` getLayoutMode() `                                                                                                                                                                                                                                                            | | ` `[LayoutTransition](https://developer.android.com/reference/android/animation/LayoutTransition.html)                            | ` getLayoutTransition() `                                                                                                                                                                                                                                                      | | ` int`                                                                                                                            | ` getNestedScrollAxes() `                                                                                                                                                                                                                                                      | | ` `[ViewOverlay](https://developer.android.com/reference/android/view/ViewOverlay.html)                                           | ` getOverlay() `                                                                                                                                                                                                                                                               | | ` int`                                                                                                                            | ` getPersistentDrawingCache() `                                                                                                                                                                                                                                                | | ` boolean`                                                                                                                        | ` getTouchscreenBlocksFocus() `                                                                                                                                                                                                                                                | | ` boolean`                                                                                                                        | ` hasFocus() `                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                                        | ` hasTransientState() `                                                                                                                                                                                                                                                        | | ` int`                                                                                                                            | ` indexOfChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                | | ` final void`                                                                                                                     | ` invalidateChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                                                          | | ` `[ViewParent](https://developer.android.com/reference/android/view/ViewParent.html)                                             | ` invalidateChildInParent(int[] arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                                                                                                                     | | ` boolean`                                                                                                                        | ` isAlwaysDrawnWithCacheEnabled() `                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                        | ` isAnimationCacheEnabled() `                                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                        | ` isChildrenDrawingOrderEnabled() `                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                        | ` isChildrenDrawnWithCacheEnabled() `                                                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` isMotionEventSplittingEnabled() `                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                        | ` isTransitionGroup() `                                                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` jumpDrawablesToCurrentState() `                                                                                                                                                                                                                                              | | ` final void`                                                                                                                     | ` layout(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` measureChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, int arg2) `                                                                                                                                                            | | ` void`                                                                                                                           | ` measureChildWithMargins(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, int arg2, int arg3, int arg4) `                                                                                                                             | | ` void`                                                                                                                           | ` measureChildren(int arg0, int arg1) `                                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` notifySubtreeAccessibilityStateChanged(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, int arg2) `                                                             | | ` final void`                                                                                                                     | ` offsetDescendantRectToMyCoords(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                                           | | ` final void`                                                                                                                     | ` offsetRectIntoDescendantCoords(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                                           | | ` void`                                                                                                                           | ` onAttachedToWindow() `                                                                                                                                                                                                                                                       | | ` int[]`                                                                                                                          | ` onCreateDrawableState(int arg0) `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` onDescendantInvalidated(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1) `                                                                                      | | ` void`                                                                                                                           | ` onDetachedFromWindow() `                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                                        | ` onInterceptHoverEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                         | | ` boolean`                                                                                                                        | ` onInterceptTouchEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                         | | ` abstract void`                                                                                                                  | ` onLayout(boolean arg0, int arg1, int arg2, int arg3, int arg4) `                                                                                                                                                                                                             | | ` boolean`                                                                                                                        | ` onNestedFling(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, float arg1, float arg2, boolean arg3) `                                                                                                                                         | | ` boolean`                                                                                                                        | ` onNestedPreFling(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, float arg1, float arg2) `                                                                                                                                                    | | ` boolean`                                                                                                                        | ` onNestedPrePerformAccessibilityAction(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                            | | ` void`                                                                                                                           | ` onNestedPreScroll(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, int arg2, int[] arg3) `                                                                                                                                           | | ` void`                                                                                                                           | ` onNestedScroll(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, int arg2, int arg3, int arg4) `                                                                                                                                      | | ` void`                                                                                                                           | ` onNestedScrollAccepted(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, int arg2) `                                                                             | | ` boolean`                                                                                                                        | ` onRequestFocusInDescendants(int arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                                                                                                                   | | ` boolean`                                                                                                                        | ` onRequestSendAccessibilityEvent(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg1) `                                    | | ` `[PointerIcon](https://developer.android.com/reference/android/view/PointerIcon.html)                                           | ` onResolvePointerIcon(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0, int arg1) `                                                                                                                                                | | ` boolean`                                                                                                                        | ` onStartNestedScroll(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, int arg2) `                                                                                | | ` void`                                                                                                                           | ` onStopNestedScroll(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                          | | ` void`                                                                                                                           | ` onViewAdded(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                 | | ` void`                                                                                                                           | ` onViewRemoved(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                               | | ` void`                                                                                                                           | ` recomputeViewAttributes(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                     | | ` void`                                                                                                                           | ` removeAllViews() `                                                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` removeAllViewsInLayout() `                                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` removeDetachedView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, boolean arg1) `                                                                                                                                                            | | ` void`                                                                                                                           | ` removeView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                                  | | ` void`                                                                                                                           | ` removeViewAt(int arg0) `                                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` removeViewInLayout(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                          | | ` void`                                                                                                                           | ` removeViews(int arg0, int arg1) `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` removeViewsInLayout(int arg0, int arg1) `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` requestChildFocus(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1) `                                                                                            | | ` boolean`                                                                                                                        | ` requestChildRectangleOnScreen(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1, boolean arg2) `                                                              | | ` void`                                                                                                                           | ` requestDisallowInterceptTouchEvent(boolean arg0) `                                                                                                                                                                                                                           | | ` boolean`                                                                                                                        | ` requestFocus(int arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                                                                                                                                  | | ` boolean`                                                                                                                        | ` requestSendAccessibilityEvent(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg1) `                                      | | ` void`                                                                                                                           | ` requestTransparentRegion(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                    | | ` boolean`                                                                                                                        | ` restoreDefaultFocus() `                                                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` scheduleLayoutAnimation() `                                                                                                                                                                                                                                                  | | ` void`                                                                                                                           | ` setAddStatesFromChildren(boolean arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setAlwaysDrawnWithCacheEnabled(boolean arg0) `                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` setAnimationCacheEnabled(boolean arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setChildrenDrawingCacheEnabled(boolean arg0) `                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` setChildrenDrawingOrderEnabled(boolean arg0) `                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` setChildrenDrawnWithCacheEnabled(boolean arg0) `                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` setClipChildren(boolean arg0) `                                                                                                                                                                                                                                              | | ` void`                                                                                                                           | ` setClipToPadding(boolean arg0) `                                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` setDescendantFocusability(int arg0) `                                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` setLayoutAnimation(`[LayoutAnimationController](https://developer.android.com/reference/android/view/animation/LayoutAnimationController.html)` arg0) `                                                                                                                      | | ` void`                                                                                                                           | ` setLayoutAnimationListener(`[Animation.AnimationListener](https://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html)` arg0) `                                                                                                          | | ` void`                                                                                                                           | ` setLayoutMode(int arg0) `                                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` setLayoutTransition(`[LayoutTransition](https://developer.android.com/reference/android/animation/LayoutTransition.html)` arg0) `                                                                                                                                            | | ` void`                                                                                                                           | ` setMotionEventSplittingEnabled(boolean arg0) `                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` setOnHierarchyChangeListener(`[ViewGroup.OnHierarchyChangeListener](https://developer.android.com/reference/android/view/ViewGroup.OnHierarchyChangeListener.html)` arg0) `                                                                                                  | | ` void`                                                                                                                           | ` setPersistentDrawingCache(int arg0) `                                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` setStaticTransformationsEnabled(boolean arg0) `                                                                                                                                                                                                                              | | ` void`                                                                                                                           | ` setTouchscreenBlocksFocus(boolean arg0) `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` setTransitionGroup(boolean arg0) `                                                                                                                                                                                                                                           | | ` boolean`                                                                                                                        | ` shouldDelayChildPressedState() `                                                                                                                                                                                                                                             | | ` boolean`                                                                                                                        | ` showContextMenuForChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, float arg1, float arg2) `                                                                                                                                             | | ` boolean`                                                                                                                        | ` showContextMenuForChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                     | | ` `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)                                             | ` startActionModeForChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg1, int arg2) `                                              | | ` `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)                                             | ` startActionModeForChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg1) `                                                        | | ` void`                                                                                                                           | ` startLayoutAnimation() `                                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` startViewTransition(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                         | | ` void`                                                                                                                           | ` updateViewLayout(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg1) `                                                         | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From class` `[android.view.View](https://developer.android.com/reference/android/view/View.html)` ` |-----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                                           | ` addChildrenForAccessibility(ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0) `                                                                                                                                            | | ` void`                                                                                                                           | ` addExtraDataToAccessibilityNodeInfo(`[AccessibilityNodeInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html)` arg0, String arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) ` | | ` void`                                                                                                                           | ` addFocusables(ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0, int arg1) `                                                                                                                                                | | ` void`                                                                                                                           | ` addFocusables(ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0, int arg1, int arg2) `                                                                                                                                      | | ` void`                                                                                                                           | ` addKeyFallbackListener(`[View.OnKeyFallbackListener](https://developer.android.com/reference/android/view/View.OnKeyFallbackListener.html)` arg0) `                                                                                                                | | ` void`                                                                                                                           | ` addKeyboardNavigationClusters(Collection<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0, int arg1) `                                                                                                                               | | ` void`                                                                                                                           | ` addOnAttachStateChangeListener(`[View.OnAttachStateChangeListener](https://developer.android.com/reference/android/view/View.OnAttachStateChangeListener.html)` arg0) `                                                                                            | | ` void`                                                                                                                           | ` addOnLayoutChangeListener(`[View.OnLayoutChangeListener](https://developer.android.com/reference/android/view/View.OnLayoutChangeListener.html)` arg0) `                                                                                                           | | ` void`                                                                                                                           | ` addTouchables(ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0) `                                                                                                                                                          | | ` `[ViewPropertyAnimator](https://developer.android.com/reference/android/view/ViewPropertyAnimator.html)                         | ` animate() `                                                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` announceForAccessibility(CharSequence arg0) `                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` autofill(`[AutofillValue](https://developer.android.com/reference/android/view/autofill/AutofillValue.html)` arg0) `                                                                                                                                               | | ` void`                                                                                                                           | ` autofill(`[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html)`<`[AutofillValue](https://developer.android.com/reference/android/view/autofill/AutofillValue.html)`> arg0) `                                                       | | ` boolean`                                                                                                                        | ` awakenScrollBars(int arg0, boolean arg1) `                                                                                                                                                                                                                         | | ` boolean`                                                                                                                        | ` awakenScrollBars(int arg0) `                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                        | ` awakenScrollBars() `                                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` bringToFront() `                                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` buildDrawingCache(boolean arg0) `                                                                                                                                                                                                                                  | | ` void`                                                                                                                           | ` buildDrawingCache() `                                                                                                                                                                                                                                              | | ` void`                                                                                                                           | ` buildLayer() `                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                                        | ` callOnClick() `                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                        | ` canResolveLayoutDirection() `                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                        | ` canResolveTextAlignment() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` canResolveTextDirection() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` canScrollHorizontally(int arg0) `                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                        | ` canScrollVertically(int arg0) `                                                                                                                                                                                                                                    | | ` final void`                                                                                                                     | ` cancelDragAndDrop() `                                                                                                                                                                                                                                              | | ` void`                                                                                                                           | ` cancelLongPress() `                                                                                                                                                                                                                                                | | ` final void`                                                                                                                     | ` cancelPendingInputEvents() `                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                        | ` checkInputConnectionProxy(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                         | | ` void`                                                                                                                           | ` clearAnimation() `                                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` clearFocus() `                                                                                                                                                                                                                                                     | | ` static int`                                                                                                                     | ` combineMeasuredStates(int arg0, int arg1) `                                                                                                                                                                                                                        | | ` int`                                                                                                                            | ` computeHorizontalScrollExtent() `                                                                                                                                                                                                                                  | | ` int`                                                                                                                            | ` computeHorizontalScrollOffset() `                                                                                                                                                                                                                                  | | ` int`                                                                                                                            | ` computeHorizontalScrollRange() `                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` computeScroll() `                                                                                                                                                                                                                                                  | | ` `[WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html)                                         | ` computeSystemWindowInsets(`[WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html)` arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                      | | ` int`                                                                                                                            | ` computeVerticalScrollExtent() `                                                                                                                                                                                                                                    | | ` int`                                                                                                                            | ` computeVerticalScrollOffset() `                                                                                                                                                                                                                                    | | ` int`                                                                                                                            | ` computeVerticalScrollRange() `                                                                                                                                                                                                                                     | | ` `[AccessibilityNodeInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html)         | ` createAccessibilityNodeInfo() `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` createContextMenu(`[ContextMenu](https://developer.android.com/reference/android/view/ContextMenu.html)` arg0) `                                                                                                                                                   | | ` void`                                                                                                                           | ` destroyDrawingCache() `                                                                                                                                                                                                                                            | | ` `[WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html)                                         | ` dispatchApplyWindowInsets(`[WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html)` arg0) `                                                                                                                                         | | ` boolean`                                                                                                                        | ` dispatchCapturedPointerEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                        | | ` void`                                                                                                                           | ` dispatchConfigurationChanged(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                                                                                                                             | | ` void`                                                                                                                           | ` dispatchDisplayHint(int arg0) `                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                        | ` dispatchDragEvent(`[DragEvent](https://developer.android.com/reference/android/view/DragEvent.html)` arg0) `                                                                                                                                                       | | ` void`                                                                                                                           | ` dispatchDraw(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg0) `                                                                                                                                                              | | ` void`                                                                                                                           | ` dispatchDrawableHotspotChanged(float arg0, float arg1) `                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` dispatchFinishTemporaryDetach() `                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                        | ` dispatchGenericFocusedEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                         | | ` boolean`                                                                                                                        | ` dispatchGenericMotionEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                          | | ` boolean`                                                                                                                        | ` dispatchGenericPointerEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                         | | ` boolean`                                                                                                                        | ` dispatchHoverEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                  | | ` boolean`                                                                                                                        | ` dispatchKeyEvent(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                                          | | ` boolean`                                                                                                                        | ` dispatchKeyEventPreIme(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                                    | | ` boolean`                                                                                                                        | ` dispatchKeyShortcutEvent(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                                  | | ` boolean`                                                                                                                        | ` dispatchNestedFling(float arg0, float arg1, boolean arg2) `                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` dispatchNestedPreFling(float arg0, float arg1) `                                                                                                                                                                                                                   | | ` boolean`                                                                                                                        | ` dispatchNestedPrePerformAccessibilityAction(int arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                           | | ` boolean`                                                                                                                        | ` dispatchNestedPreScroll(int arg0, int arg1, int[] arg2, int[] arg3) `                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` dispatchNestedScroll(int arg0, int arg1, int arg2, int arg3, int[] arg4) `                                                                                                                                                                                         | | ` void`                                                                                                                           | ` dispatchPointerCaptureChanged(boolean arg0) `                                                                                                                                                                                                                      | | ` boolean`                                                                                                                        | ` dispatchPopulateAccessibilityEvent(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg0) `                                                                                                      | | ` void`                                                                                                                           | ` dispatchProvideAutofillStructure(`[ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html)` arg0, int arg1) `                                                                                                                      | | ` void`                                                                                                                           | ` dispatchProvideStructure(`[ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html)` arg0) `                                                                                                                                        | | ` void`                                                                                                                           | ` dispatchRestoreInstanceState(`[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html)`<`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`> arg0) `                                                    | | ` void`                                                                                                                           | ` dispatchSaveInstanceState(`[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html)`<`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`> arg0) `                                                       | | ` void`                                                                                                                           | ` dispatchSetActivated(boolean arg0) `                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` dispatchSetPressed(boolean arg0) `                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` dispatchSetSelected(boolean arg0) `                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` dispatchStartTemporaryDetach() `                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` dispatchSystemUiVisibilityChanged(int arg0) `                                                                                                                                                                                                                      | | ` boolean`                                                                                                                        | ` dispatchTouchEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                  | | ` boolean`                                                                                                                        | ` dispatchTrackballEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                              | | ` boolean`                                                                                                                        | ` dispatchUnhandledMove(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                                   | | ` void`                                                                                                                           | ` dispatchVisibilityChanged(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                               | | ` void`                                                                                                                           | ` dispatchWindowFocusChanged(boolean arg0) `                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` dispatchWindowSystemUiVisiblityChanged(int arg0) `                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` dispatchWindowVisibilityChanged(int arg0) `                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` draw(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg0) `                                                                                                                                                                      | | ` void`                                                                                                                           | ` drawableHotspotChanged(float arg0, float arg1) `                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` drawableStateChanged() `                                                                                                                                                                                                                                           | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                                         | ` findFocus() `                                                                                                                                                                                                                                                      | | ` final <T extends `[View](https://developer.android.com/reference/android/view/View.html)`> T`                                   | ` findViewById(int arg0) `                                                                                                                                                                                                                                           | | ` final <T extends `[View](https://developer.android.com/reference/android/view/View.html)`> T`                                   | ` findViewWithTag(Object arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` findViewsWithText(ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`> arg0, CharSequence arg1, int arg2) `                                                                                                                         | | ` boolean`                                                                                                                        | ` fitSystemWindows(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                              | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                                         | ` focusSearch(int arg0) `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` forceHasOverlappingRendering(boolean arg0) `                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` forceLayout() `                                                                                                                                                                                                                                                    | | ` static int`                                                                                                                     | ` generateViewId() `                                                                                                                                                                                                                                                 | | ` CharSequence`                                                                                                                   | ` getAccessibilityClassName() `                                                                                                                                                                                                                                      | | ` int`                                                                                                                            | ` getAccessibilityLiveRegion() `                                                                                                                                                                                                                                     | | ` `[AccessibilityNodeProvider](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeProvider.html) | ` getAccessibilityNodeProvider() `                                                                                                                                                                                                                                   | | ` CharSequence`                                                                                                                   | ` getAccessibilityPaneTitle() `                                                                                                                                                                                                                                      | | ` int`                                                                                                                            | ` getAccessibilityTraversalAfter() `                                                                                                                                                                                                                                 | | ` int`                                                                                                                            | ` getAccessibilityTraversalBefore() `                                                                                                                                                                                                                                | | ` float`                                                                                                                          | ` getAlpha() `                                                                                                                                                                                                                                                       | | ` `[Animation](https://developer.android.com/reference/android/view/animation/Animation.html)                                     | ` getAnimation() `                                                                                                                                                                                                                                                   | | ` `[IBinder](https://developer.android.com/reference/android/os/IBinder.html)                                                     | ` getApplicationWindowToken() `                                                                                                                                                                                                                                      | | ` String[]`                                                                                                                       | ` getAutofillHints() `                                                                                                                                                                                                                                               | | ` final `[AutofillId](https://developer.android.com/reference/android/view/autofill/AutofillId.html)                              | ` getAutofillId() `                                                                                                                                                                                                                                                  | | ` int`                                                                                                                            | ` getAutofillType() `                                                                                                                                                                                                                                                | | ` `[AutofillValue](https://developer.android.com/reference/android/view/autofill/AutofillValue.html)                              | ` getAutofillValue() `                                                                                                                                                                                                                                               | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                                    | ` getBackground() `                                                                                                                                                                                                                                                  | | ` `[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)                              | ` getBackgroundTintList() `                                                                                                                                                                                                                                          | | ` `[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)                               | ` getBackgroundTintMode() `                                                                                                                                                                                                                                          | | ` int`                                                                                                                            | ` getBaseline() `                                                                                                                                                                                                                                                    | | ` final int`                                                                                                                      | ` getBottom() `                                                                                                                                                                                                                                                      | | ` float`                                                                                                                          | ` getBottomFadingEdgeStrength() `                                                                                                                                                                                                                                    | | ` int`                                                                                                                            | ` getBottomPaddingOffset() `                                                                                                                                                                                                                                         | | ` float`                                                                                                                          | ` getCameraDistance() `                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` getClipBounds(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                 | | ` `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)                                                     | ` getClipBounds() `                                                                                                                                                                                                                                                  | | ` final boolean`                                                                                                                  | ` getClipToOutline() `                                                                                                                                                                                                                                               | | ` CharSequence`                                                                                                                   | ` getContentDescription() `                                                                                                                                                                                                                                          | | ` final `[Context](https://developer.android.com/reference/android/content/Context.html)                                          | ` getContext() `                                                                                                                                                                                                                                                     | | ` `[ContextMenu.ContextMenuInfo](https://developer.android.com/reference/android/view/ContextMenu.ContextMenuInfo.html)           | ` getContextMenuInfo() `                                                                                                                                                                                                                                             | | ` final boolean`                                                                                                                  | ` getDefaultFocusHighlightEnabled() `                                                                                                                                                                                                                                | | ` static int`                                                                                                                     | ` getDefaultSize(int arg0, int arg1) `                                                                                                                                                                                                                               | | ` `[Display](https://developer.android.com/reference/android/view/Display.html)                                                   | ` getDisplay() `                                                                                                                                                                                                                                                     | | ` final int[]`                                                                                                                    | ` getDrawableState() `                                                                                                                                                                                                                                               | | ` `[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)                                                 | ` getDrawingCache() `                                                                                                                                                                                                                                                | | ` `[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)                                                 | ` getDrawingCache(boolean arg0) `                                                                                                                                                                                                                                    | | ` int`                                                                                                                            | ` getDrawingCacheBackgroundColor() `                                                                                                                                                                                                                                 | | ` int`                                                                                                                            | ` getDrawingCacheQuality() `                                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` getDrawingRect(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                | | ` long`                                                                                                                           | ` getDrawingTime() `                                                                                                                                                                                                                                                 | | ` float`                                                                                                                          | ` getElevation() `                                                                                                                                                                                                                                                   | | ` boolean`                                                                                                                        | ` getFilterTouchesWhenObscured() `                                                                                                                                                                                                                                   | | ` boolean`                                                                                                                        | ` getFitsSystemWindows() `                                                                                                                                                                                                                                           | | ` int`                                                                                                                            | ` getFocusable() `                                                                                                                                                                                                                                                   | | ` ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`>`                                            | ` getFocusables(int arg0) `                                                                                                                                                                                                                                          | | ` void`                                                                                                                           | ` getFocusedRect(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                                    | ` getForeground() `                                                                                                                                                                                                                                                  | | ` int`                                                                                                                            | ` getForegroundGravity() `                                                                                                                                                                                                                                           | | ` `[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)                              | ` getForegroundTintList() `                                                                                                                                                                                                                                          | | ` `[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)                               | ` getForegroundTintMode() `                                                                                                                                                                                                                                          | | ` final boolean`                                                                                                                  | ` getGlobalVisibleRect(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                          | | ` boolean`                                                                                                                        | ` getGlobalVisibleRect(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0, `[Point](https://developer.android.com/reference/android/graphics/Point.html)` arg1) `                                                                     | | ` `[Handler](https://developer.android.com/reference/android/os/Handler.html)                                                     | ` getHandler() `                                                                                                                                                                                                                                                     | | ` final boolean`                                                                                                                  | ` getHasOverlappingRendering() `                                                                                                                                                                                                                                     | | ` final int`                                                                                                                      | ` getHeight() `                                                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` getHitRect(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                    | | ` int`                                                                                                                            | ` getHorizontalFadingEdgeLength() `                                                                                                                                                                                                                                  | | ` int`                                                                                                                            | ` getHorizontalScrollbarHeight() `                                                                                                                                                                                                                                   | | ` int`                                                                                                                            | ` getId() `                                                                                                                                                                                                                                                          | | ` int`                                                                                                                            | ` getImportantForAccessibility() `                                                                                                                                                                                                                                   | | ` int`                                                                                                                            | ` getImportantForAutofill() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` getKeepScreenOn() `                                                                                                                                                                                                                                                | | ` `[KeyEvent.DispatcherState](https://developer.android.com/reference/android/view/KeyEvent.DispatcherState.html)                 | ` getKeyDispatcherState() `                                                                                                                                                                                                                                          | | ` int`                                                                                                                            | ` getLabelFor() `                                                                                                                                                                                                                                                    | | ` int`                                                                                                                            | ` getLayerType() `                                                                                                                                                                                                                                                   | | ` int`                                                                                                                            | ` getLayoutDirection() `                                                                                                                                                                                                                                             | | ` `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)                     | ` getLayoutParams() `                                                                                                                                                                                                                                                | | ` final int`                                                                                                                      | ` getLeft() `                                                                                                                                                                                                                                                        | | ` float`                                                                                                                          | ` getLeftFadingEdgeStrength() `                                                                                                                                                                                                                                      | | ` int`                                                                                                                            | ` getLeftPaddingOffset() `                                                                                                                                                                                                                                           | | ` final boolean`                                                                                                                  | ` getLocalVisibleRect(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                           | | ` void`                                                                                                                           | ` getLocationInWindow(int[] arg0) `                                                                                                                                                                                                                                  | | ` void`                                                                                                                           | ` getLocationOnScreen(int[] arg0) `                                                                                                                                                                                                                                  | | ` `[Matrix](https://developer.android.com/reference/android/graphics/Matrix.html)                                                 | ` getMatrix() `                                                                                                                                                                                                                                                      | | ` final int`                                                                                                                      | ` getMeasuredHeight() `                                                                                                                                                                                                                                              | | ` final int`                                                                                                                      | ` getMeasuredHeightAndState() `                                                                                                                                                                                                                                      | | ` final int`                                                                                                                      | ` getMeasuredState() `                                                                                                                                                                                                                                               | | ` final int`                                                                                                                      | ` getMeasuredWidth() `                                                                                                                                                                                                                                               | | ` final int`                                                                                                                      | ` getMeasuredWidthAndState() `                                                                                                                                                                                                                                       | | ` int`                                                                                                                            | ` getMinimumHeight() `                                                                                                                                                                                                                                               | | ` int`                                                                                                                            | ` getMinimumWidth() `                                                                                                                                                                                                                                                | | ` int`                                                                                                                            | ` getNextClusterForwardId() `                                                                                                                                                                                                                                        | | ` int`                                                                                                                            | ` getNextFocusDownId() `                                                                                                                                                                                                                                             | | ` int`                                                                                                                            | ` getNextFocusForwardId() `                                                                                                                                                                                                                                          | | ` int`                                                                                                                            | ` getNextFocusLeftId() `                                                                                                                                                                                                                                             | | ` int`                                                                                                                            | ` getNextFocusRightId() `                                                                                                                                                                                                                                            | | ` int`                                                                                                                            | ` getNextFocusUpId() `                                                                                                                                                                                                                                               | | ` `[View.OnFocusChangeListener](https://developer.android.com/reference/android/view/View.OnFocusChangeListener.html)             | ` getOnFocusChangeListener() `                                                                                                                                                                                                                                       | | ` int`                                                                                                                            | ` getOutlineAmbientShadowColor() `                                                                                                                                                                                                                                   | | ` `[ViewOutlineProvider](https://developer.android.com/reference/android/view/ViewOutlineProvider.html)                           | ` getOutlineProvider() `                                                                                                                                                                                                                                             | | ` int`                                                                                                                            | ` getOutlineSpotShadowColor() `                                                                                                                                                                                                                                      | | ` int`                                                                                                                            | ` getOverScrollMode() `                                                                                                                                                                                                                                              | | ` `[ViewOverlay](https://developer.android.com/reference/android/view/ViewOverlay.html)                                           | ` getOverlay() `                                                                                                                                                                                                                                                     | | ` int`                                                                                                                            | ` getPaddingBottom() `                                                                                                                                                                                                                                               | | ` int`                                                                                                                            | ` getPaddingEnd() `                                                                                                                                                                                                                                                  | | ` int`                                                                                                                            | ` getPaddingLeft() `                                                                                                                                                                                                                                                 | | ` int`                                                                                                                            | ` getPaddingRight() `                                                                                                                                                                                                                                                | | ` int`                                                                                                                            | ` getPaddingStart() `                                                                                                                                                                                                                                                | | ` int`                                                                                                                            | ` getPaddingTop() `                                                                                                                                                                                                                                                  | | ` final `[ViewParent](https://developer.android.com/reference/android/view/ViewParent.html)                                       | ` getParent() `                                                                                                                                                                                                                                                      | | ` `[ViewParent](https://developer.android.com/reference/android/view/ViewParent.html)                                             | ` getParentForAccessibility() `                                                                                                                                                                                                                                      | | ` float`                                                                                                                          | ` getPivotX() `                                                                                                                                                                                                                                                      | | ` float`                                                                                                                          | ` getPivotY() `                                                                                                                                                                                                                                                      | | ` `[PointerIcon](https://developer.android.com/reference/android/view/PointerIcon.html)                                           | ` getPointerIcon() `                                                                                                                                                                                                                                                 | | ` `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)                                        | ` getResources() `                                                                                                                                                                                                                                                   | | ` final boolean`                                                                                                                  | ` getRevealOnFocusHint() `                                                                                                                                                                                                                                           | | ` final int`                                                                                                                      | ` getRight() `                                                                                                                                                                                                                                                       | | ` float`                                                                                                                          | ` getRightFadingEdgeStrength() `                                                                                                                                                                                                                                     | | ` int`                                                                                                                            | ` getRightPaddingOffset() `                                                                                                                                                                                                                                          | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                                         | ` getRootView() `                                                                                                                                                                                                                                                    | | ` `[WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html)                                         | ` getRootWindowInsets() `                                                                                                                                                                                                                                            | | ` float`                                                                                                                          | ` getRotation() `                                                                                                                                                                                                                                                    | | ` float`                                                                                                                          | ` getRotationX() `                                                                                                                                                                                                                                                   | | ` float`                                                                                                                          | ` getRotationY() `                                                                                                                                                                                                                                                   | | ` float`                                                                                                                          | ` getScaleX() `                                                                                                                                                                                                                                                      | | ` float`                                                                                                                          | ` getScaleY() `                                                                                                                                                                                                                                                      | | ` int`                                                                                                                            | ` getScrollBarDefaultDelayBeforeFade() `                                                                                                                                                                                                                             | | ` int`                                                                                                                            | ` getScrollBarFadeDuration() `                                                                                                                                                                                                                                       | | ` int`                                                                                                                            | ` getScrollBarSize() `                                                                                                                                                                                                                                               | | ` int`                                                                                                                            | ` getScrollBarStyle() `                                                                                                                                                                                                                                              | | ` int`                                                                                                                            | ` getScrollIndicators() `                                                                                                                                                                                                                                            | | ` final int`                                                                                                                      | ` getScrollX() `                                                                                                                                                                                                                                                     | | ` final int`                                                                                                                      | ` getScrollY() `                                                                                                                                                                                                                                                     | | ` int`                                                                                                                            | ` getSolidColor() `                                                                                                                                                                                                                                                  | | ` `[StateListAnimator](https://developer.android.com/reference/android/animation/StateListAnimator.html)                          | ` getStateListAnimator() `                                                                                                                                                                                                                                           | | ` int`                                                                                                                            | ` getSuggestedMinimumHeight() `                                                                                                                                                                                                                                      | | ` int`                                                                                                                            | ` getSuggestedMinimumWidth() `                                                                                                                                                                                                                                       | | ` int`                                                                                                                            | ` getSystemUiVisibility() `                                                                                                                                                                                                                                          | | ` Object`                                                                                                                         | ` getTag() `                                                                                                                                                                                                                                                         | | ` Object`                                                                                                                         | ` getTag(int arg0) `                                                                                                                                                                                                                                                 | | ` int`                                                                                                                            | ` getTextAlignment() `                                                                                                                                                                                                                                               | | ` int`                                                                                                                            | ` getTextDirection() `                                                                                                                                                                                                                                               | | ` CharSequence`                                                                                                                   | ` getTooltipText() `                                                                                                                                                                                                                                                 | | ` final int`                                                                                                                      | ` getTop() `                                                                                                                                                                                                                                                         | | ` float`                                                                                                                          | ` getTopFadingEdgeStrength() `                                                                                                                                                                                                                                       | | ` int`                                                                                                                            | ` getTopPaddingOffset() `                                                                                                                                                                                                                                            | | ` `[TouchDelegate](https://developer.android.com/reference/android/view/TouchDelegate.html)                                       | ` getTouchDelegate() `                                                                                                                                                                                                                                               | | ` ArrayList<`[View](https://developer.android.com/reference/android/view/View.html)`>`                                            | ` getTouchables() `                                                                                                                                                                                                                                                  | | ` String`                                                                                                                         | ` getTransitionName() `                                                                                                                                                                                                                                              | | ` float`                                                                                                                          | ` getTranslationX() `                                                                                                                                                                                                                                                | | ` float`                                                                                                                          | ` getTranslationY() `                                                                                                                                                                                                                                                | | ` float`                                                                                                                          | ` getTranslationZ() `                                                                                                                                                                                                                                                | | ` int`                                                                                                                            | ` getVerticalFadingEdgeLength() `                                                                                                                                                                                                                                    | | ` int`                                                                                                                            | ` getVerticalScrollbarPosition() `                                                                                                                                                                                                                                   | | ` int`                                                                                                                            | ` getVerticalScrollbarWidth() `                                                                                                                                                                                                                                      | | ` `[ViewTreeObserver](https://developer.android.com/reference/android/view/ViewTreeObserver.html)                                 | ` getViewTreeObserver() `                                                                                                                                                                                                                                            | | ` int`                                                                                                                            | ` getVisibility() `                                                                                                                                                                                                                                                  | | ` final int`                                                                                                                      | ` getWidth() `                                                                                                                                                                                                                                                       | | ` int`                                                                                                                            | ` getWindowAttachCount() `                                                                                                                                                                                                                                           | | ` `[WindowId](https://developer.android.com/reference/android/view/WindowId.html)                                                 | ` getWindowId() `                                                                                                                                                                                                                                                    | | ` int`                                                                                                                            | ` getWindowSystemUiVisibility() `                                                                                                                                                                                                                                    | | ` `[IBinder](https://developer.android.com/reference/android/os/IBinder.html)                                                     | ` getWindowToken() `                                                                                                                                                                                                                                                 | | ` int`                                                                                                                            | ` getWindowVisibility() `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` getWindowVisibleDisplayFrame(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                  | | ` float`                                                                                                                          | ` getX() `                                                                                                                                                                                                                                                           | | ` float`                                                                                                                          | ` getY() `                                                                                                                                                                                                                                                           | | ` float`                                                                                                                          | ` getZ() `                                                                                                                                                                                                                                                           | | ` boolean`                                                                                                                        | ` hasExplicitFocusable() `                                                                                                                                                                                                                                           | | ` boolean`                                                                                                                        | ` hasFocus() `                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                        | ` hasFocusable() `                                                                                                                                                                                                                                                   | | ` boolean`                                                                                                                        | ` hasNestedScrollingParent() `                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                        | ` hasOnClickListeners() `                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                        | ` hasOverlappingRendering() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` hasPointerCapture() `                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` hasTransientState() `                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` hasWindowFocus() `                                                                                                                                                                                                                                                 | | ` static `[View](https://developer.android.com/reference/android/view/View.html)                                                  | ` inflate(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, int arg1, `[ViewGroup](https://developer.android.com/reference/android/view/ViewGroup.html)` arg2) `                                                               | | ` void`                                                                                                                           | ` invalidate() `                                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` invalidate(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                    | | ` void`                                                                                                                           | ` invalidate(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` invalidateDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0) `                                                                                                                                           | | ` void`                                                                                                                           | ` invalidateOutline() `                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` isAccessibilityFocused() `                                                                                                                                                                                                                                         | | ` boolean`                                                                                                                        | ` isActivated() `                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                        | ` isAttachedToWindow() `                                                                                                                                                                                                                                             | | ` boolean`                                                                                                                        | ` isClickable() `                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                        | ` isContextClickable() `                                                                                                                                                                                                                                             | | ` boolean`                                                                                                                        | ` isDirty() `                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` isDrawingCacheEnabled() `                                                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` isDuplicateParentStateEnabled() `                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                        | ` isEnabled() `                                                                                                                                                                                                                                                      | | ` final boolean`                                                                                                                  | ` isFocusable() `                                                                                                                                                                                                                                                    | | ` final boolean`                                                                                                                  | ` isFocusableInTouchMode() `                                                                                                                                                                                                                                         | | ` boolean`                                                                                                                        | ` isFocused() `                                                                                                                                                                                                                                                      | | ` final boolean`                                                                                                                  | ` isFocusedByDefault() `                                                                                                                                                                                                                                             | | ` boolean`                                                                                                                        | ` isHapticFeedbackEnabled() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` isHardwareAccelerated() `                                                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` isHorizontalFadingEdgeEnabled() `                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                        | ` isHorizontalScrollBarEnabled() `                                                                                                                                                                                                                                   | | ` boolean`                                                                                                                        | ` isHovered() `                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                        | ` isImportantForAccessibility() `                                                                                                                                                                                                                                    | | ` final boolean`                                                                                                                  | ` isImportantForAutofill() `                                                                                                                                                                                                                                         | | ` boolean`                                                                                                                        | ` isInEditMode() `                                                                                                                                                                                                                                                   | | ` boolean`                                                                                                                        | ` isInLayout() `                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                                        | ` isInTouchMode() `                                                                                                                                                                                                                                                  | | ` final boolean`                                                                                                                  | ` isKeyboardNavigationCluster() `                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                        | ` isLaidOut() `                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                        | ` isLayoutDirectionResolved() `                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                        | ` isLayoutRequested() `                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` isLongClickable() `                                                                                                                                                                                                                                                | | ` boolean`                                                                                                                        | ` isNestedScrollingEnabled() `                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                        | ` isOpaque() `                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                        | ` isPaddingOffsetRequired() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` isPaddingRelative() `                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` isPressed() `                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                        | ` isSaveEnabled() `                                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                        | ` isSaveFromParentEnabled() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` isScreenReaderFocusable() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` isScrollContainer() `                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` isScrollbarFadingEnabled() `                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                        | ` isSelected() `                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                                        | ` isShown() `                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` isSoundEffectsEnabled() `                                                                                                                                                                                                                                          | | ` final boolean`                                                                                                                  | ` isTemporarilyDetached() `                                                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` isTextAlignmentResolved() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` isTextDirectionResolved() `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` isVerticalFadingEdgeEnabled() `                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                        | ` isVerticalScrollBarEnabled() `                                                                                                                                                                                                                                     | | ` boolean`                                                                                                                        | ` isVisibleToUserForAutofill(int arg0) `                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` jumpDrawablesToCurrentState() `                                                                                                                                                                                                                                    | | ` `[View](https://developer.android.com/reference/android/view/View.html)                                                         | ` keyboardNavigationClusterSearch(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                         | | ` void`                                                                                                                           | ` layout(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                   | | ` final void`                                                                                                                     | ` measure(int arg0, int arg1) `                                                                                                                                                                                                                                      | | ` static int[]`                                                                                                                   | ` mergeDrawableStates(int[] arg0, int[] arg1) `                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` offsetLeftAndRight(int arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` offsetTopAndBottom(int arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` onAnimationEnd() `                                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` onAnimationStart() `                                                                                                                                                                                                                                               | | ` `[WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html)                                         | ` onApplyWindowInsets(`[WindowInsets](https://developer.android.com/reference/android/view/WindowInsets.html)` arg0) `                                                                                                                                               | | ` void`                                                                                                                           | ` onAttachedToWindow() `                                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` onCancelPendingInputEvents() `                                                                                                                                                                                                                                     | | ` boolean`                                                                                                                        | ` onCapturedPointerEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                              | | ` boolean`                                                                                                                        | ` onCheckIsTextEditor() `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` onConfigurationChanged(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                                                                                                                                   | | ` void`                                                                                                                           | ` onCreateContextMenu(`[ContextMenu](https://developer.android.com/reference/android/view/ContextMenu.html)` arg0) `                                                                                                                                                 | | ` int[]`                                                                                                                          | ` onCreateDrawableState(int arg0) `                                                                                                                                                                                                                                  | | ` `[InputConnection](https://developer.android.com/reference/android/view/inputmethod/InputConnection.html)                       | ` onCreateInputConnection(`[EditorInfo](https://developer.android.com/reference/android/view/inputmethod/EditorInfo.html)` arg0) `                                                                                                                                   | | ` void`                                                                                                                           | ` onDetachedFromWindow() `                                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` onDisplayHint(int arg0) `                                                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` onDragEvent(`[DragEvent](https://developer.android.com/reference/android/view/DragEvent.html)` arg0) `                                                                                                                                                             | | ` void`                                                                                                                           | ` onDraw(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg0) `                                                                                                                                                                    | | ` void`                                                                                                                           | ` onDrawForeground(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg0) `                                                                                                                                                          | | ` final void`                                                                                                                     | ` onDrawScrollBars(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg0) `                                                                                                                                                          | | ` boolean`                                                                                                                        | ` onFilterTouchEventForSecurity(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                       | | ` void`                                                                                                                           | ` onFinishInflate() `                                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` onFinishTemporaryDetach() `                                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` onFocusChanged(boolean arg0, int arg1, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg2) `                                                                                                                                        | | ` boolean`                                                                                                                        | ` onGenericMotionEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                | | ` void`                                                                                                                           | ` onHoverChanged(boolean arg0) `                                                                                                                                                                                                                                     | | ` boolean`                                                                                                                        | ` onHoverEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                        | | ` void`                                                                                                                           | ` onInitializeAccessibilityEvent(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg0) `                                                                                                          | | ` void`                                                                                                                           | ` onInitializeAccessibilityNodeInfo(`[AccessibilityNodeInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html)` arg0) `                                                                                                 | | ` boolean`                                                                                                                        | ` onKeyDown(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                                                                                                                                                       | | ` boolean`                                                                                                                        | ` onKeyFallback(`[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg0) `                                                                                                                                                             | | ` boolean`                                                                                                                        | ` onKeyLongPress(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                                                                                                                                                  | | ` boolean`                                                                                                                        | ` onKeyMultiple(int arg0, int arg1, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg2) `                                                                                                                                         | | ` boolean`                                                                                                                        | ` onKeyPreIme(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                                                                                                                                                     | | ` boolean`                                                                                                                        | ` onKeyShortcut(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                                                                                                                                                   | | ` boolean`                                                                                                                        | ` onKeyUp(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                                                                                                                                                         | | ` void`                                                                                                                           | ` onLayout(boolean arg0, int arg1, int arg2, int arg3, int arg4) `                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` onMeasure(int arg0, int arg1) `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` onOverScrolled(int arg0, int arg1, boolean arg2, boolean arg3) `                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` onPointerCaptureChange(boolean arg0) `                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` onPopulateAccessibilityEvent(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg0) `                                                                                                            | | ` void`                                                                                                                           | ` onProvideAutofillStructure(`[ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html)` arg0, int arg1) `                                                                                                                            | | ` void`                                                                                                                           | ` onProvideAutofillVirtualStructure(`[ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html)` arg0, int arg1) `                                                                                                                     | | ` void`                                                                                                                           | ` onProvideStructure(`[ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html)` arg0) `                                                                                                                                              | | ` void`                                                                                                                           | ` onProvideVirtualStructure(`[ViewStructure](https://developer.android.com/reference/android/view/ViewStructure.html)` arg0) `                                                                                                                                       | | ` `[PointerIcon](https://developer.android.com/reference/android/view/PointerIcon.html)                                           | ` onResolvePointerIcon(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0, int arg1) `                                                                                                                                      | | ` void`                                                                                                                           | ` onRestoreInstanceState(`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)` arg0) `                                                                                                                                                  | | ` void`                                                                                                                           | ` onRtlPropertiesChanged(int arg0) `                                                                                                                                                                                                                                 | | ` `[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)                                               | ` onSaveInstanceState() `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` onScreenStateChanged(int arg0) `                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` onScrollChanged(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` onSetAlpha(int arg0) `                                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` onSizeChanged(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` onStartTemporaryDetach() `                                                                                                                                                                                                                                         | | ` boolean`                                                                                                                        | ` onTouchEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                        | | ` boolean`                                                                                                                        | ` onTrackballEvent(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                                    | | ` void`                                                                                                                           | ` onVisibilityAggregated(boolean arg0) `                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` onVisibilityChanged(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                                     | | ` void`                                                                                                                           | ` onWindowFocusChanged(boolean arg0) `                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` onWindowSystemUiVisibilityChanged(int arg0) `                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` onWindowVisibilityChanged(int arg0) `                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` overScrollBy(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8) `                                                                                                                                                       | | ` boolean`                                                                                                                        | ` performAccessibilityAction(int arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                            | | ` boolean`                                                                                                                        | ` performClick() `                                                                                                                                                                                                                                                   | | ` boolean`                                                                                                                        | ` performContextClick(float arg0, float arg1) `                                                                                                                                                                                                                      | | ` boolean`                                                                                                                        | ` performContextClick() `                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                        | ` performHapticFeedback(int arg0) `                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                        | ` performHapticFeedback(int arg0, int arg1) `                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` performLongClick(float arg0, float arg1) `                                                                                                                                                                                                                         | | ` boolean`                                                                                                                        | ` performLongClick() `                                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` playSoundEffect(int arg0) `                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                        | ` post(Runnable arg0) `                                                                                                                                                                                                                                              | | ` boolean`                                                                                                                        | ` postDelayed(Runnable arg0, long arg1) `                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` postInvalidate() `                                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` postInvalidate(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` postInvalidateDelayed(long arg0, int arg1, int arg2, int arg3, int arg4) `                                                                                                                                                                                         | | ` void`                                                                                                                           | ` postInvalidateDelayed(long arg0) `                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` postInvalidateOnAnimation(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                | | ` void`                                                                                                                           | ` postInvalidateOnAnimation() `                                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` postOnAnimation(Runnable arg0) `                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` postOnAnimationDelayed(Runnable arg0, long arg1) `                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` refreshDrawableState() `                                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` releasePointerCapture() `                                                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` removeCallbacks(Runnable arg0) `                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` removeKeyFallbackListener(`[View.OnKeyFallbackListener](https://developer.android.com/reference/android/view/View.OnKeyFallbackListener.html)` arg0) `                                                                                                             | | ` void`                                                                                                                           | ` removeOnAttachStateChangeListener(`[View.OnAttachStateChangeListener](https://developer.android.com/reference/android/view/View.OnAttachStateChangeListener.html)` arg0) `                                                                                         | | ` void`                                                                                                                           | ` removeOnLayoutChangeListener(`[View.OnLayoutChangeListener](https://developer.android.com/reference/android/view/View.OnLayoutChangeListener.html)` arg0) `                                                                                                        | | ` void`                                                                                                                           | ` requestApplyInsets() `                                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` requestFitSystemWindows() `                                                                                                                                                                                                                                        | | ` final boolean`                                                                                                                  | ` requestFocus(int arg0) `                                                                                                                                                                                                                                           | | ` final boolean`                                                                                                                  | ` requestFocus() `                                                                                                                                                                                                                                                   | | ` boolean`                                                                                                                        | ` requestFocus(int arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                                                                                                                        | | ` final boolean`                                                                                                                  | ` requestFocusFromTouch() `                                                                                                                                                                                                                                          | | ` void`                                                                                                                           | ` requestLayout() `                                                                                                                                                                                                                                                  | | ` void`                                                                                                                           | ` requestPointerCapture() `                                                                                                                                                                                                                                          | | ` boolean`                                                                                                                        | ` requestRectangleOnScreen(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                      | | ` boolean`                                                                                                                        | ` requestRectangleOnScreen(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0, boolean arg1) `                                                                                                                                        | | ` final void`                                                                                                                     | ` requestUnbufferedDispatch(`[MotionEvent](https://developer.android.com/reference/android/view/MotionEvent.html)` arg0) `                                                                                                                                           | | ` final <T extends `[View](https://developer.android.com/reference/android/view/View.html)`> T`                                   | ` requireViewById(int arg0) `                                                                                                                                                                                                                                        | | ` static int`                                                                                                                     | ` resolveSize(int arg0, int arg1) `                                                                                                                                                                                                                                  | | ` static int`                                                                                                                     | ` resolveSizeAndState(int arg0, int arg1, int arg2) `                                                                                                                                                                                                                | | ` boolean`                                                                                                                        | ` restoreDefaultFocus() `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` restoreHierarchyState(`[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html)`<`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`> arg0) `                                                           | | ` void`                                                                                                                           | ` saveHierarchyState(`[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html)`<`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`> arg0) `                                                              | | ` void`                                                                                                                           | ` scheduleDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0, Runnable arg1, long arg2) `                                                                                                                   | | ` void`                                                                                                                           | ` scrollBy(int arg0, int arg1) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` scrollTo(int arg0, int arg1) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` sendAccessibilityEvent(int arg0) `                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` sendAccessibilityEventUnchecked(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg0) `                                                                                                         | | ` void`                                                                                                                           | ` setAccessibilityDelegate(`[View.AccessibilityDelegate](https://developer.android.com/reference/android/view/View.AccessibilityDelegate.html)` arg0) `                                                                                                              | | ` void`                                                                                                                           | ` setAccessibilityLiveRegion(int arg0) `                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` setAccessibilityPaneTitle(CharSequence arg0) `                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setAccessibilityTraversalAfter(int arg0) `                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` setAccessibilityTraversalBefore(int arg0) `                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` setActivated(boolean arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setAlpha(float arg0) `                                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` setAnimation(`[Animation](https://developer.android.com/reference/android/view/animation/Animation.html)` arg0) `                                                                                                                                                  | | ` void`                                                                                                                           | ` setAutofillHints(String... arg0) `                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` setBackground(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0) `                                                                                                                                                | | ` void`                                                                                                                           | ` setBackgroundColor(int arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setBackgroundDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0) `                                                                                                                                        | | ` void`                                                                                                                           | ` setBackgroundResource(int arg0) `                                                                                                                                                                                                                                  | | ` void`                                                                                                                           | ` setBackgroundTintList(`[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)` arg0) `                                                                                                                                  | | ` void`                                                                                                                           | ` setBackgroundTintMode(`[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` arg0) `                                                                                                                                   | | ` final void`                                                                                                                     | ` setBottom(int arg0) `                                                                                                                                                                                                                                              | | ` void`                                                                                                                           | ` setCameraDistance(float arg0) `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` setClickable(boolean arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setClipBounds(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                 | | ` void`                                                                                                                           | ` setClipToOutline(boolean arg0) `                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` setContentDescription(CharSequence arg0) `                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` setContextClickable(boolean arg0) `                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` setDefaultFocusHighlightEnabled(boolean arg0) `                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` setDrawingCacheBackgroundColor(int arg0) `                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` setDrawingCacheEnabled(boolean arg0) `                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` setDrawingCacheQuality(int arg0) `                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` setDuplicateParentStateEnabled(boolean arg0) `                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setElevation(float arg0) `                                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` setEnabled(boolean arg0) `                                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` setFadingEdgeLength(int arg0) `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` setFilterTouchesWhenObscured(boolean arg0) `                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setFitsSystemWindows(boolean arg0) `                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` setFocusable(boolean arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setFocusable(int arg0) `                                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` setFocusableInTouchMode(boolean arg0) `                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` setFocusedByDefault(boolean arg0) `                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` setForeground(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0) `                                                                                                                                                | | ` void`                                                                                                                           | ` setForegroundGravity(int arg0) `                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` setForegroundTintList(`[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)` arg0) `                                                                                                                                  | | ` void`                                                                                                                           | ` setForegroundTintMode(`[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` arg0) `                                                                                                                                   | | ` void`                                                                                                                           | ` setHapticFeedbackEnabled(boolean arg0) `                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` setHasTransientState(boolean arg0) `                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` setHorizontalFadingEdgeEnabled(boolean arg0) `                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setHorizontalScrollBarEnabled(boolean arg0) `                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` setHovered(boolean arg0) `                                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` setId(int arg0) `                                                                                                                                                                                                                                                  | | ` void`                                                                                                                           | ` setImportantForAccessibility(int arg0) `                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` setImportantForAutofill(int arg0) `                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` setKeepScreenOn(boolean arg0) `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` setKeyboardNavigationCluster(boolean arg0) `                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setLabelFor(int arg0) `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` setLayerPaint(`[Paint](https://developer.android.com/reference/android/graphics/Paint.html)` arg0) `                                                                                                                                                               | | ` void`                                                                                                                           | ` setLayerType(int arg0, `[Paint](https://developer.android.com/reference/android/graphics/Paint.html)` arg1) `                                                                                                                                                      | | ` void`                                                                                                                           | ` setLayoutDirection(int arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setLayoutParams(`[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg0) `                                                                                                                               | | ` final void`                                                                                                                     | ` setLeft(int arg0) `                                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` setLongClickable(boolean arg0) `                                                                                                                                                                                                                                   | | ` final void`                                                                                                                     | ` setMeasuredDimension(int arg0, int arg1) `                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` setMinimumHeight(int arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setMinimumWidth(int arg0) `                                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` setNestedScrollingEnabled(boolean arg0) `                                                                                                                                                                                                                          | | ` void`                                                                                                                           | ` setNextClusterForwardId(int arg0) `                                                                                                                                                                                                                                | | ` void`                                                                                                                           | ` setNextFocusDownId(int arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setNextFocusForwardId(int arg0) `                                                                                                                                                                                                                                  | | ` void`                                                                                                                           | ` setNextFocusLeftId(int arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setNextFocusRightId(int arg0) `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` setNextFocusUpId(int arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setOnApplyWindowInsetsListener(`[View.OnApplyWindowInsetsListener](https://developer.android.com/reference/android/view/View.OnApplyWindowInsetsListener.html)` arg0) `                                                                                            | | ` void`                                                                                                                           | ` setOnCapturedPointerListener(`[View.OnCapturedPointerListener](https://developer.android.com/reference/android/view/View.OnCapturedPointerListener.html)` arg0) `                                                                                                  | | ` void`                                                                                                                           | ` setOnClickListener(`[View.OnClickListener](https://developer.android.com/reference/android/view/View.OnClickListener.html)` arg0) `                                                                                                                                | | ` void`                                                                                                                           | ` setOnContextClickListener(`[View.OnContextClickListener](https://developer.android.com/reference/android/view/View.OnContextClickListener.html)` arg0) `                                                                                                           | | ` void`                                                                                                                           | ` setOnCreateContextMenuListener(`[View.OnCreateContextMenuListener](https://developer.android.com/reference/android/view/View.OnCreateContextMenuListener.html)` arg0) `                                                                                            | | ` void`                                                                                                                           | ` setOnDragListener(`[View.OnDragListener](https://developer.android.com/reference/android/view/View.OnDragListener.html)` arg0) `                                                                                                                                   | | ` void`                                                                                                                           | ` setOnFocusChangeListener(`[View.OnFocusChangeListener](https://developer.android.com/reference/android/view/View.OnFocusChangeListener.html)` arg0) `                                                                                                              | | ` void`                                                                                                                           | ` setOnGenericMotionListener(`[View.OnGenericMotionListener](https://developer.android.com/reference/android/view/View.OnGenericMotionListener.html)` arg0) `                                                                                                        | | ` void`                                                                                                                           | ` setOnHoverListener(`[View.OnHoverListener](https://developer.android.com/reference/android/view/View.OnHoverListener.html)` arg0) `                                                                                                                                | | ` void`                                                                                                                           | ` setOnKeyListener(`[View.OnKeyListener](https://developer.android.com/reference/android/view/View.OnKeyListener.html)` arg0) `                                                                                                                                      | | ` void`                                                                                                                           | ` setOnLongClickListener(`[View.OnLongClickListener](https://developer.android.com/reference/android/view/View.OnLongClickListener.html)` arg0) `                                                                                                                    | | ` void`                                                                                                                           | ` setOnScrollChangeListener(`[View.OnScrollChangeListener](https://developer.android.com/reference/android/view/View.OnScrollChangeListener.html)` arg0) `                                                                                                           | | ` void`                                                                                                                           | ` setOnSystemUiVisibilityChangeListener(`[View.OnSystemUiVisibilityChangeListener](https://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener.html)` arg0) `                                                                       | | ` void`                                                                                                                           | ` setOnTouchListener(`[View.OnTouchListener](https://developer.android.com/reference/android/view/View.OnTouchListener.html)` arg0) `                                                                                                                                | | ` void`                                                                                                                           | ` setOutlineAmbientShadowColor(int arg0) `                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` setOutlineProvider(`[ViewOutlineProvider](https://developer.android.com/reference/android/view/ViewOutlineProvider.html)` arg0) `                                                                                                                                  | | ` void`                                                                                                                           | ` setOutlineSpotShadowColor(int arg0) `                                                                                                                                                                                                                              | | ` void`                                                                                                                           | ` setOverScrollMode(int arg0) `                                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` setPadding(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` setPaddingRelative(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setPivotX(float arg0) `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` setPivotY(float arg0) `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` setPointerIcon(`[PointerIcon](https://developer.android.com/reference/android/view/PointerIcon.html)` arg0) `                                                                                                                                                      | | ` void`                                                                                                                           | ` setPressed(boolean arg0) `                                                                                                                                                                                                                                         | | ` final void`                                                                                                                     | ` setRevealOnFocusHint(boolean arg0) `                                                                                                                                                                                                                               | | ` final void`                                                                                                                     | ` setRight(int arg0) `                                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` setRotation(float arg0) `                                                                                                                                                                                                                                          | | ` void`                                                                                                                           | ` setRotationX(float arg0) `                                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` setRotationY(float arg0) `                                                                                                                                                                                                                                         | | ` void`                                                                                                                           | ` setSaveEnabled(boolean arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setSaveFromParentEnabled(boolean arg0) `                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` setScaleX(float arg0) `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` setScaleY(float arg0) `                                                                                                                                                                                                                                            | | ` void`                                                                                                                           | ` setScreenReaderFocusable(boolean arg0) `                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` setScrollBarDefaultDelayBeforeFade(int arg0) `                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setScrollBarFadeDuration(int arg0) `                                                                                                                                                                                                                               | | ` void`                                                                                                                           | ` setScrollBarSize(int arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setScrollBarStyle(int arg0) `                                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` setScrollContainer(boolean arg0) `                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` setScrollIndicators(int arg0, int arg1) `                                                                                                                                                                                                                          | | ` void`                                                                                                                           | ` setScrollIndicators(int arg0) `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` setScrollX(int arg0) `                                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` setScrollY(int arg0) `                                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` setScrollbarFadingEnabled(boolean arg0) `                                                                                                                                                                                                                          | | ` void`                                                                                                                           | ` setSelected(boolean arg0) `                                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` setSoundEffectsEnabled(boolean arg0) `                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` setStateListAnimator(`[StateListAnimator](https://developer.android.com/reference/android/animation/StateListAnimator.html)` arg0) `                                                                                                                               | | ` void`                                                                                                                           | ` setSystemUiVisibility(int arg0) `                                                                                                                                                                                                                                  | | ` void`                                                                                                                           | ` setTag(int arg0, Object arg1) `                                                                                                                                                                                                                                    | | ` void`                                                                                                                           | ` setTag(Object arg0) `                                                                                                                                                                                                                                              | | ` void`                                                                                                                           | ` setTextAlignment(int arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setTextDirection(int arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setTooltipText(CharSequence arg0) `                                                                                                                                                                                                                                | | ` final void`                                                                                                                     | ` setTop(int arg0) `                                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` setTouchDelegate(`[TouchDelegate](https://developer.android.com/reference/android/view/TouchDelegate.html)` arg0) `                                                                                                                                                | | ` final void`                                                                                                                     | ` setTransitionName(String arg0) `                                                                                                                                                                                                                                   | | ` void`                                                                                                                           | ` setTranslationX(float arg0) `                                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` setTranslationY(float arg0) `                                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` setTranslationZ(float arg0) `                                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` setVerticalFadingEdgeEnabled(boolean arg0) `                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` setVerticalScrollBarEnabled(boolean arg0) `                                                                                                                                                                                                                        | | ` void`                                                                                                                           | ` setVerticalScrollbarPosition(int arg0) `                                                                                                                                                                                                                           | | ` void`                                                                                                                           | ` setVisibility(int arg0) `                                                                                                                                                                                                                                          | | ` void`                                                                                                                           | ` setWillNotCacheDrawing(boolean arg0) `                                                                                                                                                                                                                             | | ` void`                                                                                                                           | ` setWillNotDraw(boolean arg0) `                                                                                                                                                                                                                                     | | ` void`                                                                                                                           | ` setX(float arg0) `                                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` setY(float arg0) `                                                                                                                                                                                                                                                 | | ` void`                                                                                                                           | ` setZ(float arg0) `                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                                        | ` showContextMenu() `                                                                                                                                                                                                                                                | | ` boolean`                                                                                                                        | ` showContextMenu(float arg0, float arg1) `                                                                                                                                                                                                                          | | ` `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)                                             | ` startActionMode(`[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg0, int arg1) `                                                                                                                           | | ` `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html)                                             | ` startActionMode(`[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg0) `                                                                                                                                     | | ` void`                                                                                                                           | ` startAnimation(`[Animation](https://developer.android.com/reference/android/view/animation/Animation.html)` arg0) `                                                                                                                                                | | ` final boolean`                                                                                                                  | ` startDrag(`[ClipData](https://developer.android.com/reference/android/content/ClipData.html)` arg0, `[View.DragShadowBuilder](https://developer.android.com/reference/android/view/View.DragShadowBuilder.html)` arg1, Object arg2, int arg3) `                    | | ` final boolean`                                                                                                                  | ` startDragAndDrop(`[ClipData](https://developer.android.com/reference/android/content/ClipData.html)` arg0, `[View.DragShadowBuilder](https://developer.android.com/reference/android/view/View.DragShadowBuilder.html)` arg1, Object arg2, int arg3) `             | | ` boolean`                                                                                                                        | ` startNestedScroll(int arg0) `                                                                                                                                                                                                                                      | | ` void`                                                                                                                           | ` stopNestedScroll() `                                                                                                                                                                                                                                               | | ` String`                                                                                                                         | ` toString() `                                                                                                                                                                                                                                                       | | ` void`                                                                                                                           | ` unscheduleDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0, Runnable arg1) `                                                                                                                            | | ` void`                                                                                                                           | ` unscheduleDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0) `                                                                                                                                           | | ` final void`                                                                                                                     | ` updateDragShadow(`[View.DragShadowBuilder](https://developer.android.com/reference/android/view/View.DragShadowBuilder.html)` arg0) `                                                                                                                              | | ` boolean`                                                                                                                        | ` verifyDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0) `                                                                                                                                               | | ` boolean`                                                                                                                        | ` willNotCacheDrawing() `                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                        | ` willNotDraw() `                                                                                                                                                                                                                                                    | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From interface` `[android.view.ViewParent](https://developer.android.com/reference/android/view/ViewParent.html)` ` |------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void`                                                                               | ` bringChildToFront(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                           | | ` abstract boolean`                                                                            | ` canResolveLayoutDirection() `                                                                                                                                                                                                                                                | | ` abstract boolean`                                                                            | ` canResolveTextAlignment() `                                                                                                                                                                                                                                                  | | ` abstract boolean`                                                                            | ` canResolveTextDirection() `                                                                                                                                                                                                                                                  | | ` abstract void`                                                                               | ` childDrawableStateChanged(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                   | | ` abstract void`                                                                               | ` childHasTransientStateChanged(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, boolean arg1) `                                                                                                                                                 | | ` abstract void`                                                                               | ` clearChildFocus(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                             | | ` abstract void`                                                                               | ` createContextMenu(`[ContextMenu](https://developer.android.com/reference/android/view/ContextMenu.html)` arg0) `                                                                                                                                                             | | ` abstract `[View](https://developer.android.com/reference/android/view/View.html)             | ` focusSearch(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                                                       | | ` abstract void`                                                                               | ` focusableViewAvailable(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                      | | ` abstract boolean`                                                                            | ` getChildVisibleRect(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1, `[Point](https://developer.android.com/reference/android/graphics/Point.html)` arg2) ` | | ` abstract int`                                                                                | ` getLayoutDirection() `                                                                                                                                                                                                                                                       | | ` abstract `[ViewParent](https://developer.android.com/reference/android/view/ViewParent.html) | ` getParent() `                                                                                                                                                                                                                                                                | | ` abstract `[ViewParent](https://developer.android.com/reference/android/view/ViewParent.html) | ` getParentForAccessibility() `                                                                                                                                                                                                                                                | | ` abstract int`                                                                                | ` getTextAlignment() `                                                                                                                                                                                                                                                         | | ` abstract int`                                                                                | ` getTextDirection() `                                                                                                                                                                                                                                                         | | ` abstract void`                                                                               | ` invalidateChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                                                          | | ` abstract `[ViewParent](https://developer.android.com/reference/android/view/ViewParent.html) | ` invalidateChildInParent(int[] arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1) `                                                                                                                                                     | | ` abstract boolean`                                                                            | ` isLayoutDirectionResolved() `                                                                                                                                                                                                                                                | | ` abstract boolean`                                                                            | ` isLayoutRequested() `                                                                                                                                                                                                                                                        | | ` abstract boolean`                                                                            | ` isTextAlignmentResolved() `                                                                                                                                                                                                                                                  | | ` abstract boolean`                                                                            | ` isTextDirectionResolved() `                                                                                                                                                                                                                                                  | | ` abstract `[View](https://developer.android.com/reference/android/view/View.html)             | ` keyboardNavigationClusterSearch(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1) `                                                                                                                                                   | | ` abstract void`                                                                               | ` notifySubtreeAccessibilityStateChanged(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, int arg2) `                                                             | | ` default void`                                                                                | ` onDescendantInvalidated(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1) `                                                                                      | | ` abstract boolean`                                                                            | ` onNestedFling(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, float arg1, float arg2, boolean arg3) `                                                                                                                                         | | ` abstract boolean`                                                                            | ` onNestedPreFling(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, float arg1, float arg2) `                                                                                                                                                    | | ` abstract boolean`                                                                            | ` onNestedPrePerformAccessibilityAction(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                            | | ` abstract void`                                                                               | ` onNestedPreScroll(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, int arg2, int[] arg3) `                                                                                                                                           | | ` abstract void`                                                                               | ` onNestedScroll(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, int arg1, int arg2, int arg3, int arg4) `                                                                                                                                      | | ` abstract void`                                                                               | ` onNestedScrollAccepted(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, int arg2) `                                                                             | | ` abstract boolean`                                                                            | ` onStartNestedScroll(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1, int arg2) `                                                                                | | ` abstract void`                                                                               | ` onStopNestedScroll(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                          | | ` abstract void`                                                                               | ` recomputeViewAttributes(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                     | | ` abstract void`                                                                               | ` requestChildFocus(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[View](https://developer.android.com/reference/android/view/View.html)` arg1) `                                                                                            | | ` abstract boolean`                                                                            | ` requestChildRectangleOnScreen(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg1, boolean arg2) `                                                              | | ` abstract void`                                                                               | ` requestDisallowInterceptTouchEvent(boolean arg0) `                                                                                                                                                                                                                           | | ` abstract void`                                                                               | ` requestFitSystemWindows() `                                                                                                                                                                                                                                                  | | ` abstract void`                                                                               | ` requestLayout() `                                                                                                                                                                                                                                                            | | ` abstract boolean`                                                                            | ` requestSendAccessibilityEvent(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg1) `                                      | | ` abstract void`                                                                               | ` requestTransparentRegion(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                    | | ` abstract boolean`                                                                            | ` showContextMenuForChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                                                                     | | ` abstract boolean`                                                                            | ` showContextMenuForChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, float arg1, float arg2) `                                                                                                                                             | | ` abstract `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html) | ` startActionModeForChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg1, int arg2) `                                              | | ` abstract `[ActionMode](https://developer.android.com/reference/android/view/ActionMode.html) | ` startActionModeForChild(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ActionMode.Callback](https://developer.android.com/reference/android/view/ActionMode.Callback.html)` arg1) `                                                        | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From interface` `[android.view.ViewManager](https://developer.android.com/reference/android/view/ViewManager.html)` ` |------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` addView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg1) `          | | ` abstract void` | ` removeView(`[View](https://developer.android.com/reference/android/view/View.html)` arg0) `                                                                                                                          | | ` abstract void` | ` updateViewLayout(`[View](https://developer.android.com/reference/android/view/View.html)` arg0, `[ViewGroup.LayoutParams](https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html)` arg1) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From interface` `[android.graphics.drawable.Drawable.Callback](https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)` ` |------------------|----------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` invalidateDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0) `                         | | ` abstract void` | ` scheduleDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0, Runnable arg1, long arg2) ` | | ` abstract void` | ` unscheduleDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0, Runnable arg1) `          | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From interface` `[android.view.KeyEvent.Callback](https://developer.android.com/reference/android/view/KeyEvent.Callback.html)` ` |---------------------|------------------------------------------------------------------------------------------------------------------------------| | ` abstract boolean` | ` onKeyDown(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `               | | ` abstract boolean` | ` onKeyLongPress(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `          | | ` abstract boolean` | ` onKeyMultiple(int arg0, int arg1, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg2) ` | | ` abstract boolean` | ` onKeyUp(int arg0, `[KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html)` arg1) `                 | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#)From interface` `[android.view.accessibility.AccessibilityEventSource](https://developer.android.com/reference/android/view/accessibility/AccessibilityEventSource.html)` ` |------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` sendAccessibilityEvent(int arg0) `                                                                                                                         | | ` abstract void` | ` sendAccessibilityEventUnchecked(`[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)` arg0) ` | ||

## Constants

### ALIGN_BOUNDS

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int ALIGN_BOUNDS
```

This constant is an[alignmentMode](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int)). When the`alignmentMode`is set to[ALIGN_BOUNDS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_BOUNDS), alignment is made between the edges of each component's raw view boundary: i.e. the area delimited by the component's:[top](https://developer.android.com/reference/android/view/View.html#getTop()),[left](https://developer.android.com/reference/android/view/View.html#getLeft()),[bottom](https://developer.android.com/reference/android/view/View.html#getBottom())and[right](https://developer.android.com/reference/android/view/View.html#getRight())properties.

For example, when`GridLayout`is in[ALIGN_BOUNDS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_BOUNDS)mode, children that belong to a row group that uses[TOP](https://developer.android.com/reference/android/support/v7/widget/GridLayout#TOP)alignment will all return the same value when their[getTop()](https://developer.android.com/reference/android/view/View.html#getTop())method is called.

<br />

**See also:**

- [setAlignmentMode(int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int))

Constant Value: 0 (0x00000000)  

### ALIGN_MARGINS

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int ALIGN_MARGINS
```

This constant is an[alignmentMode](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int)). When the`alignmentMode`is set to[ALIGN_MARGINS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_MARGINS), the bounds of each view are extended outwards, according to their margins, before the edges of the resulting rectangle are aligned.

For example, when`GridLayout`is in[ALIGN_MARGINS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_MARGINS)mode, the quantity`top - layoutParams.topMargin`is the same for all children that belong to a row group that uses[TOP](https://developer.android.com/reference/android/support/v7/widget/GridLayout#TOP)alignment.

<br />

**See also:**

- [setAlignmentMode(int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int))

Constant Value: 1 (0x00000001)  

### HORIZONTAL

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int HORIZONTAL
```

The horizontal orientation.

<br />

Constant Value: 0 (0x00000000)  

### UNDEFINED

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int UNDEFINED
```

The constant used to indicate that a value is undefined. Fields can use this value to indicate that their values have not yet been set. Similarly, methods can return this value to indicate that there is no suitable value that the implementation can return. The value used for the constant (currently[MIN_VALUE](https://developer.android.com/reference/java/lang/Integer#MIN_VALUE)) is intended to avoid confusion between valid values whose sign may not be known.

<br />

Constant Value: -2147483648 (0x80000000)  

### VERTICAL

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int VERTICAL
```

The vertical orientation.

<br />

Constant Value: 1 (0x00000001)

## Fields

### BASELINE

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Alignment BASELINE
```

Indicates that a view should be aligned with the*baselines* of the other views in its cell group. This constant may only be used as an alignment in[rowSpecs](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#rowSpec).

<br />

**See also:**

- [getBaseline()](https://developer.android.com/https://developer.android.com/reference/android/view/View#getBaseline())  

### BOTTOM

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Alignment BOTTOM
```

Indicates that a view should be aligned with the*bottom*edges of the other views in its cell group.

<br />

### CENTER

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Alignment CENTER
```

Indicates that a view should be*centered* with the other views in its cell group. This constant may be used in both[rowSpecs](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#rowSpec)and[columnSpecs](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#columnSpec).

<br />

### END

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Alignment END
```

Indicates that a view should be aligned with the*end*edges of the other views in its cell group.

<br />

### FILL

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Alignment FILL
```

Indicates that a view should expanded to fit the boundaries of its cell group. This constant may be used in both[rowSpecs](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#rowSpec)and[columnSpecs](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#columnSpec).

<br />

### LEFT

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Alignment LEFT
```

Indicates that a view should be aligned with the*left*edges of the other views in its cell group.

<br />

### RIGHT

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Alignment RIGHT
```

Indicates that a view should be aligned with the*right*edges of the other views in its cell group.

<br />

### START

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Alignment START
```

Indicates that a view should be aligned with the*start*edges of the other views in its cell group.

<br />

### TOP

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Alignment TOP
```

Indicates that a view should be aligned with the*top*edges of the other views in its cell group.

<br />

## Public constructors

### GridLayout

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout (Context context, 
                AttributeSet attrs, 
                int defStyle)
```

<br />

<br />

|            Parameters             ||
|------------|-----------------------|
| `context`  | `Context` <br />      |
| `attrs`    | `AttributeSet` <br /> |
| `defStyle` | `int` <br />          |

### GridLayout

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

### GridLayout

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout (Context context)
```

<br />

<br />

|         Parameters          ||
|-----------|------------------|
| `context` | `Context` <br /> |

## Public methods

### generateLayoutParams

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.LayoutParams generateLayoutParams (AttributeSet attrs)
```

<br />

<br />

|           Parameters           ||
|---------|-----------------------|
| `attrs` | `AttributeSet` <br /> |

|                                                           Returns                                                            ||
|----------------------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams) | <br /> |

### getAlignmentMode

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getAlignmentMode ()
```

Returns the alignment mode.

<br />

|                                                                                                                            Returns                                                                                                                             ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | the alignment mode; either[ALIGN_BOUNDS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_BOUNDS)or[ALIGN_MARGINS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_MARGINS) <br /> |

**See also:**

- [ALIGN_BOUNDS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_BOUNDS)
- [ALIGN_MARGINS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_MARGINS)
- [setAlignmentMode(int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int))  

### getColumnCount

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getColumnCount ()
```

Returns the current number of columns. This is either the last value that was set with[setColumnCount(int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setColumnCount(int))or, if no such value was set, the maximum value of each the upper bounds defined in[columnSpec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#columnSpec).

<br />

|                   Returns                   ||
|-------|--------------------------------------|
| `int` | the current number of columns <br /> |

**See also:**

- [setColumnCount(int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setColumnCount(int))
- [columnSpec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#columnSpec)  

### getOrientation

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getOrientation ()
```

Returns the current orientation.

<br />

|                                                                                                           Returns                                                                                                            ||
|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | either[HORIZONTAL](https://developer.android.com/reference/android/support/v7/widget/GridLayout#HORIZONTAL)or[VERTICAL](https://developer.android.com/reference/android/support/v7/widget/GridLayout#VERTICAL) <br /> |

**See also:**

- [setOrientation(int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setOrientation(int))  

### getPrinter

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Printer getPrinter ()
```

Return the printer that will log diagnostics from this layout.

<br />

|                                                          Returns                                                           ||
|------------------------------------------------------------------------------|----------------------------------------------|
| [Printer](https://developer.android.com/reference/android/util/Printer.html) | the printer associated with this view <br /> |

**See also:**

- [setPrinter(android.util.Printer)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setPrinter(android.util.Printer))  

### getRowCount

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getRowCount ()
```

Returns the current number of rows. This is either the last value that was set with[setRowCount(int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setRowCount(int))or, if no such value was set, the maximum value of each the upper bounds defined in[rowSpec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#rowSpec).

<br />

|                 Returns                  ||
|-------|-----------------------------------|
| `int` | the current number of rows <br /> |

**See also:**

- [setRowCount(int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setRowCount(int))
- [rowSpec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#rowSpec)  

### getUseDefaultMargins

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean getUseDefaultMargins ()
```

Returns whether or not this GridLayout will allocate default margins when no corresponding layout parameters are defined.

<br />

|                            Returns                             ||
|-----------|-----------------------------------------------------|
| `boolean` | `true`if default margins should be allocated <br /> |

**See also:**

- [setUseDefaultMargins(boolean)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setUseDefaultMargins(boolean))  

### isColumnOrderPreserved

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isColumnOrderPreserved ()
```

Returns whether or not column boundaries are ordered by their grid indices.

<br />

|                                                 Returns                                                 ||
|-----------|----------------------------------------------------------------------------------------------|
| `boolean` | `true`if column boundaries must appear in the order of their indices,`false`otherwise <br /> |

**See also:**

- [setColumnOrderPreserved(boolean)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setColumnOrderPreserved(boolean))  

### isRowOrderPreserved

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isRowOrderPreserved ()
```

Returns whether or not row boundaries are ordered by their grid indices.

<br />

|                                               Returns                                                ||
|-----------|-------------------------------------------------------------------------------------------|
| `boolean` | `true`if row boundaries must appear in the order of their indices,`false`otherwise <br /> |

**See also:**

- [setRowOrderPreserved(boolean)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setRowOrderPreserved(boolean))  

### requestLayout

```
void requestLayout ()
```

<br />

<br />

### setAlignmentMode

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setAlignmentMode (int alignmentMode)
```

Sets the alignment mode to be used for all of the alignments between the children of this container.

The default value of this property is[ALIGN_MARGINS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_MARGINS).

<br />

|                                                                                                                         Parameters                                                                                                                          ||
|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `alignmentMode` | `int`: either[ALIGN_BOUNDS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_BOUNDS)or[ALIGN_MARGINS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_MARGINS) <br /> |

**See also:**

- [ALIGN_BOUNDS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_BOUNDS)
- [ALIGN_MARGINS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_MARGINS)
- [getAlignmentMode()](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getAlignmentMode())  

### setColumnCount

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setColumnCount (int columnCount)
```

ColumnCount is used only to generate default column/column indices when they are not specified by a component's layout parameters.

<br />

|                     Parameters                      ||
|---------------|--------------------------------------|
| `columnCount` | `int`: the number of columns. <br /> |

**See also:**

- [getColumnCount()](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getColumnCount())
- [columnSpec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#columnSpec)  

### setColumnOrderPreserved

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setColumnOrderPreserved (boolean columnOrderPreserved)
```

When this property is`true`, GridLayout is forced to place the column boundaries so that their associated grid indices are in ascending order in the view.

When this property is`false`GridLayout is at liberty to place the horizontal column boundaries in whatever order best fits the given constraints.

The default value of this property is`true`.

<br />

|                                                    Parameters                                                     ||
|------------------------|-------------------------------------------------------------------------------------------|
| `columnOrderPreserved` | `boolean`: use`true`to force GridLayout to respect the order of column boundaries. <br /> |

**See also:**

- [isColumnOrderPreserved()](https://developer.android.com/reference/android/support/v7/widget/GridLayout#isColumnOrderPreserved())  

### setOrientation

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setOrientation (int orientation)
```

GridLayout uses the orientation property for two purposes:

- To control the 'direction' in which default row/column indices are generated when they are not specified in a component's layout parameters.
- To control which axis should be processed first during the layout operation: when orientation is[HORIZONTAL](https://developer.android.com/reference/android/support/v7/widget/GridLayout#HORIZONTAL)the horizontal axis is laid out first.

The order in which axes are laid out is important if, for example, the height of one of GridLayout's children is dependent on its width - and its width is, in turn, dependent on the widths of other components.

If your layout contains a[TextView](https://developer.android.com/reference/android/widget/TextView.html)(or derivative:`Button`,`EditText`,`CheckBox`, etc.) which is in multi-line mode (the default) it is normally best to leave GridLayout's orientation as`HORIZONTAL`- because`TextView`is capable of deriving its height for a given width, but not the other way around.

Other than the effects above, orientation does not affect the actual layout operation of GridLayout, so it's fine to leave GridLayout in`HORIZONTAL`mode even if the height of the intended layout greatly exceeds its width.

The default value of this property is[HORIZONTAL](https://developer.android.com/reference/android/support/v7/widget/GridLayout#HORIZONTAL).

<br />

|                                                                                                                 Parameters                                                                                                                  ||
|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `orientation` | `int`: either[HORIZONTAL](https://developer.android.com/reference/android/support/v7/widget/GridLayout#HORIZONTAL)or[VERTICAL](https://developer.android.com/reference/android/support/v7/widget/GridLayout#VERTICAL) <br /> |

**See also:**

- [getOrientation()](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getOrientation())  

### setPrinter

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setPrinter (Printer printer)
```

Set the printer that will log diagnostics from this layout. The default value is created by[LogPrinter](https://developer.android.com/reference/android/util/LogPrinter.html).

<br />

|                              Parameters                              ||
|-----------|-----------------------------------------------------------|
| `printer` | `Printer`: the printer associated with this layout <br /> |

**See also:**

- [getPrinter()](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getPrinter())  

### setRowCount

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setRowCount (int rowCount)
```

RowCount is used only to generate default row/column indices when they are not specified by a component's layout parameters.

<br />

|                  Parameters                  ||
|------------|----------------------------------|
| `rowCount` | `int`: the number of rows <br /> |

**See also:**

- [getRowCount()](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getRowCount())
- [rowSpec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams#rowSpec)  

### setRowOrderPreserved

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setRowOrderPreserved (boolean rowOrderPreserved)
```

When this property is`true`, GridLayout is forced to place the row boundaries so that their associated grid indices are in ascending order in the view.

When this property is`false`GridLayout is at liberty to place the vertical row boundaries in whatever order best fits the given constraints.

The default value of this property is`true`.

<br />

|                                               Parameters                                               ||
|---------------------|-----------------------------------------------------------------------------------|
| `rowOrderPreserved` | `boolean`:`true`to force GridLayout to respect the order of row boundaries <br /> |

**See also:**

- [isRowOrderPreserved()](https://developer.android.com/reference/android/support/v7/widget/GridLayout#isRowOrderPreserved())  

### setUseDefaultMargins

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setUseDefaultMargins (boolean useDefaultMargins)
```

When`true`, GridLayout allocates default margins around children based on the child's visual characteristics. Each of the margins so defined may be independently overridden by an assignment to the appropriate layout parameter.

When`false`, the default value of all margins is zero.

When setting to`true`, consider setting the value of the[alignmentMode](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int))property to[ALIGN_BOUNDS](https://developer.android.com/reference/android/support/v7/widget/GridLayout#ALIGN_BOUNDS).

The default value of this property is`false`.

<br />

|                                         Parameters                                          ||
|---------------------|------------------------------------------------------------------------|
| `useDefaultMargins` | `boolean`: use`true`to make GridLayout allocate default margins <br /> |

**See also:**

- [getUseDefaultMargins()](https://developer.android.com/reference/android/support/v7/widget/GridLayout#getUseDefaultMargins())
- [setAlignmentMode(int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#setAlignmentMode(int))
- [ERROR(/MarginLayoutParams#leftMargin)](https://developer.android.com/)
- [ERROR(/MarginLayoutParams#topMargin)](https://developer.android.com/)
- [ERROR(/MarginLayoutParams#rightMargin)](https://developer.android.com/)
- [ERROR(/MarginLayoutParams#bottomMargin)](https://developer.android.com/)  

### spec

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Spec spec (int start, 
                float weight)
```

Equivalent to:`spec(start, 1, weight)`.

<br />

|              Parameters              ||
|----------|----------------------------|
| `start`  | `int`: the start <br />    |
| `weight` | `float`: the weight <br /> |

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec) | <br /> |

### spec

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Spec spec (int start, 
                int size, 
                GridLayout.Alignment alignment)
```

Equivalent to:`spec(start, size, alignment, 0f)`.

<br />

|                        Parameters                         ||
|-------------|----------------------------------------------|
| `start`     | `int`: the start <br />                      |
| `size`      | `int`: the size <br />                       |
| `alignment` | `GridLayout.Alignment`: the alignment <br /> |

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec) | <br /> |

### spec

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Spec spec (int start, 
                GridLayout.Alignment alignment)
```

Return a Spec,`spec`, where:

- `spec.span = [start, start + 1]`
- `spec.alignment = alignment`

To leave the start index undefined, use the value[UNDEFINED](https://developer.android.com/reference/android/support/v7/widget/GridLayout#UNDEFINED).

<br />

|                        Parameters                         ||
|-------------|----------------------------------------------|
| `start`     | `int`: the start index <br />                |
| `alignment` | `GridLayout.Alignment`: the alignment <br /> |

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec) | <br /> |

**See also:**

- [spec(int, int, Alignment)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, int, android.support.v7.widget.GridLayout.Alignment))  

### spec

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Spec spec (int start)
```

Return a Spec,`spec`, where:

- `spec.span = [start, start + 1]`

To leave the start index undefined, use the value[UNDEFINED](https://developer.android.com/reference/android/support/v7/widget/GridLayout#UNDEFINED).

<br />

|               Parameters               ||
|---------|-------------------------------|
| `start` | `int`: the start index <br /> |

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec) | <br /> |

**See also:**

- [spec(int, int)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, int))  

### spec

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Spec spec (int start, 
                int size, 
                GridLayout.Alignment alignment, 
                float weight)
```

Return a Spec,`spec`, where:

- `spec.span = [start, start + size]`
- `spec.alignment = alignment`
- `spec.weight = weight`

To leave the start index undefined, use the value[UNDEFINED](https://developer.android.com/reference/android/support/v7/widget/GridLayout#UNDEFINED).

<br />

|                        Parameters                         ||
|-------------|----------------------------------------------|
| `start`     | `int`: the start <br />                      |
| `size`      | `int`: the size <br />                       |
| `alignment` | `GridLayout.Alignment`: the alignment <br /> |
| `weight`    | `float`: the weight <br />                   |

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec) | <br /> |

### spec

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Spec spec (int start, 
                int size, 
                float weight)
```

Equivalent to:`spec(start, 1, default_alignment, weight)`- where`default_alignment`is specified in[GridLayout.LayoutParams](https://developer.android.com/reference/android/widget/GridLayout.LayoutParams.html).

<br />

|              Parameters              ||
|----------|----------------------------|
| `start`  | `int`: the start <br />    |
| `size`   | `int`: the size <br />     |
| `weight` | `float`: the weight <br /> |

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec) | <br /> |

### spec

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Spec spec (int start, 
                int size)
```

Return a Spec,`spec`, where:

- `spec.span = [start, start + size]`

To leave the start index undefined, use the value[UNDEFINED](https://developer.android.com/reference/android/support/v7/widget/GridLayout#UNDEFINED).

<br />

|            Parameters            ||
|---------|-------------------------|
| `start` | `int`: the start <br /> |
| `size`  | `int`: the size <br />  |

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec) | <br /> |

**See also:**

- [spec(int, Alignment)](https://developer.android.com/reference/android/support/v7/widget/GridLayout#spec(int, android.support.v7.widget.GridLayout.Alignment))  

### spec

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.Spec spec (int start, 
                GridLayout.Alignment alignment, 
                float weight)
```

Equivalent to:`spec(start, 1, alignment, weight)`.

<br />

|                        Parameters                         ||
|-------------|----------------------------------------------|
| `start`     | `int`: the start <br />                      |
| `alignment` | `GridLayout.Alignment`: the alignment <br /> |
| `weight`    | `float`: the weight <br />                   |

|                                                   Returns                                                    ||
|------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec) | <br /> |

## Protected methods

### checkLayoutParams

```
boolean checkLayoutParams (ViewGroup.LayoutParams p)
```

<br />

<br />

|              Parameters              ||
|-----|---------------------------------|
| `p` | `ViewGroup.LayoutParams` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### generateDefaultLayoutParams

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.LayoutParams generateDefaultLayoutParams ()
```

<br />

<br />

|                                                           Returns                                                            ||
|----------------------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams) | <br /> |

### generateLayoutParams

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
GridLayout.LayoutParams generateLayoutParams (ViewGroup.LayoutParams lp)
```

<br />

<br />

|              Parameters               ||
|------|---------------------------------|
| `lp` | `ViewGroup.LayoutParams` <br /> |

|                                                           Returns                                                            ||
|----------------------------------------------------------------------------------------------------------------------|--------|
| [GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams) | <br /> |

### onLayout

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onLayout (boolean changed, 
                int left, 
                int top, 
                int right, 
                int bottom)
```

<br />

<br />

|         Parameters          ||
|-----------|------------------|
| `changed` | `boolean` <br /> |
| `left`    | `int` <br />     |
| `top`     | `int` <br />     |
| `right`   | `int` <br />     |
| `bottom`  | `int` <br />     |

### onMeasure

```
void onMeasure (int widthSpec, 
                int heightSpec)
```

<br />

<br />

|         Parameters         ||
|--------------|--------------|
| `widthSpec`  | `int` <br /> |
| `heightSpec` | `int` <br /> |

-

  ## Annotations

  - [RecyclerView.EdgeEffectFactory.EdgeDirection](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.EdgeEffectFactory.EdgeDirection)
  - [RecyclerView.ItemAnimator.AdapterChanges](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.AdapterChanges)
-

  ## Interfaces

  - [ActionMenuView.OnMenuItemClickListener](https://developer.android.com/reference/android/support/v7/widget/ActionMenuView.OnMenuItemClickListener)
  - [PopupMenu.OnDismissListener](https://developer.android.com/reference/android/support/v7/widget/PopupMenu.OnDismissListener)
  - [PopupMenu.OnMenuItemClickListener](https://developer.android.com/reference/android/support/v7/widget/PopupMenu.OnMenuItemClickListener)
  - [RecyclerView.ChildDrawingOrderCallback](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ChildDrawingOrderCallback)
  - [RecyclerView.ItemAnimator.ItemAnimatorFinishedListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.ItemAnimatorFinishedListener)
  - [RecyclerView.LayoutManager.LayoutPrefetchRegistry](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager.LayoutPrefetchRegistry)
  - [RecyclerView.OnChildAttachStateChangeListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnChildAttachStateChangeListener)
  - [RecyclerView.OnItemTouchListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnItemTouchListener)
  - [RecyclerView.RecyclerListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.RecyclerListener)
  - [RecyclerView.SmoothScroller.ScrollVectorProvider](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller.ScrollVectorProvider)
  - [SearchView.OnCloseListener](https://developer.android.com/reference/android/support/v7/widget/SearchView.OnCloseListener)
  - [SearchView.OnQueryTextListener](https://developer.android.com/reference/android/support/v7/widget/SearchView.OnQueryTextListener)
  - [SearchView.OnSuggestionListener](https://developer.android.com/reference/android/support/v7/widget/SearchView.OnSuggestionListener)
  - [ShareActionProvider.OnShareTargetSelectedListener](https://developer.android.com/reference/android/support/v7/widget/ShareActionProvider.OnShareTargetSelectedListener)
  - [ThemedSpinnerAdapter](https://developer.android.com/reference/android/support/v7/widget/ThemedSpinnerAdapter)
  - [Toolbar.OnMenuItemClickListener](https://developer.android.com/reference/android/support/v7/widget/Toolbar.OnMenuItemClickListener)
-

  ## Classes

  - [ActionMenuView](https://developer.android.com/reference/android/support/v7/widget/ActionMenuView)
  - [ActionMenuView.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/ActionMenuView.LayoutParams)
  - [AppCompatAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatAutoCompleteTextView)
  - [AppCompatButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatButton)
  - [AppCompatCheckBox](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckBox)
  - [AppCompatCheckedTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckedTextView)
  - [AppCompatEditText](https://developer.android.com/reference/android/support/v7/widget/AppCompatEditText)
  - [AppCompatImageButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageButton)
  - [AppCompatImageView](https://developer.android.com/reference/android/support/v7/widget/AppCompatImageView)
  - [AppCompatMultiAutoCompleteTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatMultiAutoCompleteTextView)
  - [AppCompatRadioButton](https://developer.android.com/reference/android/support/v7/widget/AppCompatRadioButton)
  - [AppCompatRatingBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatRatingBar)
  - [AppCompatSeekBar](https://developer.android.com/reference/android/support/v7/widget/AppCompatSeekBar)
  - [AppCompatSpinner](https://developer.android.com/reference/android/support/v7/widget/AppCompatSpinner)
  - [AppCompatTextView](https://developer.android.com/reference/android/support/v7/widget/AppCompatTextView)
  - [CardView](https://developer.android.com/reference/android/support/v7/widget/CardView)
  - [DefaultItemAnimator](https://developer.android.com/reference/android/support/v7/widget/DefaultItemAnimator)
  - [DividerItemDecoration](https://developer.android.com/reference/android/support/v7/widget/DividerItemDecoration)
  - [GridLayout](https://developer.android.com/reference/android/support/v7/widget/GridLayout)
  - [GridLayout.Alignment](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Alignment)
  - [GridLayout.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayout.LayoutParams)
  - [GridLayout.Spec](https://developer.android.com/reference/android/support/v7/widget/GridLayout.Spec)
  - [GridLayoutManager](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager)
  - [GridLayoutManager.DefaultSpanSizeLookup](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.DefaultSpanSizeLookup)
  - [GridLayoutManager.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.LayoutParams)
  - [GridLayoutManager.SpanSizeLookup](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.SpanSizeLookup)
  - [LinearLayoutCompat](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutCompat)
  - [LinearLayoutCompat.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutCompat.LayoutParams)
  - [LinearLayoutManager](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager)
  - [LinearLayoutManager.LayoutChunkResult](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager.LayoutChunkResult)
  - [LinearSmoothScroller](https://developer.android.com/reference/android/support/v7/widget/LinearSmoothScroller)
  - [LinearSnapHelper](https://developer.android.com/reference/android/support/v7/widget/LinearSnapHelper)
  - [ListPopupWindow](https://developer.android.com/reference/android/support/v7/widget/ListPopupWindow)
  - [OrientationHelper](https://developer.android.com/reference/android/support/v7/widget/OrientationHelper)
  - [PagerSnapHelper](https://developer.android.com/reference/android/support/v7/widget/PagerSnapHelper)
  - [PopupMenu](https://developer.android.com/reference/android/support/v7/widget/PopupMenu)
  - [RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView)
  - [RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter)
  - [RecyclerView.AdapterDataObserver](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.AdapterDataObserver)
  - [RecyclerView.EdgeEffectFactory](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.EdgeEffectFactory)
  - [RecyclerView.ItemAnimator](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator)
  - [RecyclerView.ItemAnimator.ItemHolderInfo](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.ItemHolderInfo)
  - [RecyclerView.ItemDecoration](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemDecoration)
  - [RecyclerView.LayoutManager](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager)
  - [RecyclerView.LayoutManager.Properties](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager.Properties)
  - [RecyclerView.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutParams)
  - [RecyclerView.OnFlingListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnFlingListener)
  - [RecyclerView.OnScrollListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnScrollListener)
  - [RecyclerView.RecycledViewPool](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.RecycledViewPool)
  - [RecyclerView.Recycler](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Recycler)
  - [RecyclerView.SimpleOnItemTouchListener](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SimpleOnItemTouchListener)
  - [RecyclerView.SmoothScroller](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller)
  - [RecyclerView.SmoothScroller.Action](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.SmoothScroller.Action)
  - [RecyclerView.State](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.State)
  - [RecyclerView.ViewCacheExtension](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewCacheExtension)
  - [RecyclerView.ViewHolder](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder)
  - [RecyclerViewAccessibilityDelegate](https://developer.android.com/reference/android/support/v7/widget/RecyclerViewAccessibilityDelegate)
  - [RecyclerViewAccessibilityDelegate.ItemDelegate](https://developer.android.com/reference/android/support/v7/widget/RecyclerViewAccessibilityDelegate.ItemDelegate)
  - [SearchView](https://developer.android.com/reference/android/support/v7/widget/SearchView)
  - [ShareActionProvider](https://developer.android.com/reference/android/support/v7/widget/ShareActionProvider)
  - [SimpleItemAnimator](https://developer.android.com/reference/android/support/v7/widget/SimpleItemAnimator)
  - [SnapHelper](https://developer.android.com/reference/android/support/v7/widget/SnapHelper)
  - [StaggeredGridLayoutManager](https://developer.android.com/reference/android/support/v7/widget/StaggeredGridLayoutManager)
  - [StaggeredGridLayoutManager.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/StaggeredGridLayoutManager.LayoutParams)
  - [SwitchCompat](https://developer.android.com/reference/android/support/v7/widget/SwitchCompat)
  - [ThemedSpinnerAdapter.Helper](https://developer.android.com/reference/android/support/v7/widget/ThemedSpinnerAdapter.Helper)
  - [Toolbar](https://developer.android.com/reference/android/support/v7/widget/Toolbar)
  - [Toolbar.LayoutParams](https://developer.android.com/reference/android/support/v7/widget/Toolbar.LayoutParams)
  - [Toolbar.SavedState](https://developer.android.com/reference/android/support/v7/widget/Toolbar.SavedState)
  - [TooltipCompat](https://developer.android.com/reference/android/support/v7/widget/TooltipCompat)