# GridReference

Artifact: [androidx.constraintlayout:constraintlayout-core](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/core/state/helpers/GridReference.java+class:androidx.constraintlayout.core.state.helpers.GridReference) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
public class GridReference extends HelperReference
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [androidx.constraintlayout.core.state.ConstraintReference](https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference) |||
|   | ↳ | [androidx.constraintlayout.core.state.HelperReference](https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference) ||
|   |   | ↳ | [androidx.constraintlayout.core.state.helpers.GridReference](https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference) |

*** ** * ** ***

A HelperReference of a Grid Helper that helps enable Grid in Compose

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#GridReference(androidx.constraintlayout.core.state.State,androidx.constraintlayout.core.state.State.Helper)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/constraintlayout/core/state/State state, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/constraintlayout/core/state/State.Helper type)` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#apply()()` Apply all the attributes to the helper widget (Grid) |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getColumnWeights()()` Get the column weights |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getColumnsSet()()` Get the number of columns |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getFlags()()` Get all the flags of a Grid |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getHelperWidget()()` Get the helper widget (Grid) |
| `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getHorizontalGaps()()` Get the horizontal gaps |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getOrientation()()` Get the Orientation |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getPaddingBottom()()` get padding bottom |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getPaddingEnd()()` get padding right |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getPaddingStart()()` get padding left |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getPaddingTop()()` get padding top |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getRowWeights()()` Get the row weights |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getRowsSet()()` Get the number of rows |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getSkips()()` Get the skips |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getSpans()()` Get the spans |
| `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#getVerticalGaps()()` Get the vertical gaps |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setColumnWeights(java.lang.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html columnWeights)` Set the column weights |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setColumnsSet(int)(int columnsSet)` Set the number of columns |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setFlags(int)(int flags)` Set flags of a Grid |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setFlags(java.lang.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html flags)` Set flags of a Grid |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setHelperWidget(androidx.constraintlayout.core.widgets.HelperWidget)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget widget)` Set the helper widget (Grid) |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setHorizontalGaps(float)(float horizontalGaps)` Set the horizontal gaps |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setOrientation(int)(int orientation)` Set the Orientation |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setPaddingBottom(int)(int paddingBottom)` set padding bottom |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setPaddingEnd(int)(int paddingEnd)` set padding right |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setPaddingStart(int)(int paddingStart)` set padding left |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setPaddingTop(int)(int paddingTop)` set padding top |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setRowWeights(java.lang.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html rowWeights)` Set the row weights |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setRowsSet(int)(int rowsSet)` Set the number of rows |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setSkips(java.lang.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html skips)` Set the skips |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setSpans(java.lang.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html spans)` Set the spans |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/GridReference#setVerticalGaps(float)(float verticalGaps)` Set the vertical gaps |

| ### Inherited fields |
|---|
| From [androidx.constraintlayout.core.state.ConstraintReference](https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference) |---|---| | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mBottomToBottom()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mBottomToTop()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mEndToEnd()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mEndToStart()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mHorizontalBias()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mLeftToLeft()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mLeftToRight()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginBottom()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginBottomGone()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginEnd()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginEndGone()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginLeft()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginLeftGone()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginRight()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginRightGone()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginStart()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginStartGone()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginTop()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mMarginTopGone()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mRightToLeft()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mRightToRight()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mStartToEnd()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mStartToStart()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mTopToBottom()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mTopToTop()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#mVerticalBias()` | |
| From [androidx.constraintlayout.core.state.HelperReference](https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference) |---|---| | `final https://developer.android.com/reference/androidx/constraintlayout/core/state/State` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference#mHelperState()` | | `https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/java/lang/Object.html>` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference#mReferences()` | |

| ### Inherited methods |
|---|
| From [androidx.constraintlayout.core.state.ConstraintReference](https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference) |---|---| | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#addCustomColor(java.lang.String,int)(https://developer.android.com/reference/java/lang/String.html name, int color)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#addCustomFloat(java.lang.String,float)(https://developer.android.com/reference/java/lang/String.html name, float value)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#alpha(float)(float alpha)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#applyWidgetConstraints()()` apply all the constraints attributes of the mConstraintWidget | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#baseline()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#baselineToBaseline(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#baselineToBottom(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#baselineToTop(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#bias(float)(float value)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#bottom()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#bottomToBottom(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#bottomToTop(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#centerHorizontally(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#centerVertically(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#circularConstraint(java.lang.Object,float,float)(https://developer.android.com/reference/java/lang/Object.html reference, float angle, float distance)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#clear()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#clearAll()()` Clears all constraints. | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#clearHorizontal()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#clearVertical()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#createConstraintWidget()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#end()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#endToEnd(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#endToStart(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getAlpha()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/Facade` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getFacade()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/Dimension` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getHeight()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getHorizontalChainStyle()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getHorizontalChainWeight()()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getKey()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getPivotX()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getPivotY()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getRotationX()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getRotationY()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getRotationZ()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getScaleX()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getScaleY()()` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getTag()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getTranslationX()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getTranslationY()()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getTranslationZ()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getVerticalChainStyle(int)(int chainStyle)` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getVerticalChainWeight()()` | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getView()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/Dimension` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#getWidth()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#height(androidx.constraintlayout.core.state.Dimension)(https://developer.android.com/reference/androidx/constraintlayout/core/state/Dimension dimension)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#horizontalBias(float)(float value)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#left()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#leftToLeft(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#leftToRight(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#margin(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html marginValue)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#margin(int)(int value)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#marginGone(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html marginGoneValue)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#marginGone(int)(int value)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#pivotX(float)(float x)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#pivotY(float)(float y)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#right()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#rightToLeft(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#rightToRight(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#rotationX(float)(float x)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#rotationY(float)(float y)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#rotationZ(float)(float z)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#scaleX(float)(float x)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#scaleY(float)(float y)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setConstraintWidget(androidx.constraintlayout.core.widgets.ConstraintWidget)(https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget widget)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setFacade(androidx.constraintlayout.core.state.helpers.Facade)(https://developer.android.com/reference/androidx/constraintlayout/core/state/helpers/Facade facade)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setHeight(androidx.constraintlayout.core.state.Dimension)(https://developer.android.com/reference/androidx/constraintlayout/core/state/Dimension dimension)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setHorizontalChainStyle(int)(int chainStyle)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setHorizontalChainWeight(float)(float weight)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setKey(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html key)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setTag(java.lang.String)(https://developer.android.com/reference/java/lang/String.html tag)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setVerticalChainStyle(int)(int chainStyle)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setVerticalChainWeight(float)(float weight)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setView(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html view)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#setWidth(androidx.constraintlayout.core.state.Dimension)(https://developer.android.com/reference/androidx/constraintlayout/core/state/Dimension dimension)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#start()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#startToEnd(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#startToStart(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#top()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#topToBottom(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#topToTop(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html reference)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#translationX(float)(float x)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#translationY(float)(float y)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#translationZ(float)(float z)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#validate()()` Validate the constraints | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#verticalBias(float)(float value)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#visibility(int)(int visibility)` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/ConstraintReference#width(androidx.constraintlayout.core.state.Dimension)(https://developer.android.com/reference/androidx/constraintlayout/core/state/Dimension dimension)` | |
| From [androidx.constraintlayout.core.state.HelperReference](https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference) |---|---| | `https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference#add(java.lang.Object...)(Object[] objects)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference#applyBase()()` Allows the derived classes to invoke the apply method in the ConstraintReference | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference#getConstraintWidget()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/State.Helper` | `https://developer.android.com/reference/androidx/constraintlayout/core/state/HelperReference#getType()()` | |

## Public constructors

### GridReference

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public GridReference(@NonNull State state, @NonNull State.Helper type)
```

## Public methods

### apply

```
public void apply()
```

Apply all the attributes to the helper widget (Grid)

### getColumnWeights

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public @Nullable String getColumnWeights()
```

Get the column weights

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | the column weights |

### getColumnsSet

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public int getColumnsSet()
```

Get the number of columns

| Returns |
|---|---|
| `int` | the number of columns |

### getFlags

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public int getFlags()
```

Get all the flags of a Grid

| Returns |
|---|---|
| `int` | an int value containing flag information |

### getHelperWidget

```
public @NonNull HelperWidget getHelperWidget()
```

Get the helper widget (Grid)

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget` | the helper widget (Grid) |

### getHorizontalGaps

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public float getHorizontalGaps()
```

Get the horizontal gaps

| Returns |
|---|---|
| `float` | the horizontal gaps |

### getOrientation

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public int getOrientation()
```

Get the Orientation

| Returns |
|---|---|
| `int` | the Orientation |

### getPaddingBottom

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public int getPaddingBottom()
```

get padding bottom

| Returns |
|---|---|
| `int` | padding bottom |

### getPaddingEnd

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public int getPaddingEnd()
```

get padding right

| Returns |
|---|---|
| `int` | padding right |

### getPaddingStart

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public int getPaddingStart()
```

get padding left

| Returns |
|---|---|
| `int` | padding left |

### getPaddingTop

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public int getPaddingTop()
```

get padding top

| Returns |
|---|---|
| `int` | padding top |

### getRowWeights

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public @Nullable String getRowWeights()
```

Get the row weights

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | the row weights |

### getRowsSet

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public int getRowsSet()
```

Get the number of rows

| Returns |
|---|---|
| `int` | the number of rows |

### getSkips

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public @Nullable String getSkips()
```

Get the skips

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | the skips |

### getSpans

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public @Nullable String getSpans()
```

Get the spans

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | the spans |

### getVerticalGaps

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public float getVerticalGaps()
```

Get the vertical gaps

| Returns |
|---|---|
| `float` | the vertical gaps |

### setColumnWeights

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setColumnWeights(@NonNull String columnWeights)
```

Set the column weights

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html columnWeights` | the column weights |

### setColumnsSet

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setColumnsSet(int columnsSet)
```

Set the number of columns

| Parameters |
|---|---|
| `int columnsSet` | the number of columns |

### setFlags

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setFlags(int flags)
```

Set flags of a Grid

| Parameters |
|---|---|
| `int flags` | an int value containing flag information |

### setFlags

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setFlags(@NonNull String flags)
```

Set flags of a Grid

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html flags` | a String containing all the flags |

### setHelperWidget

```
public void setHelperWidget(@Nullable HelperWidget widget)
```

Set the helper widget (Grid)

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget widget` | the helper widget (Grid) |

### setHorizontalGaps

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setHorizontalGaps(float horizontalGaps)
```

Set the horizontal gaps

| Parameters |
|---|---|
| `float horizontalGaps` | the horizontal gaps |

### setOrientation

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

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

Set the Orientation

| Parameters |
|---|---|
| `int orientation` | the Orientation |

### setPaddingBottom

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setPaddingBottom(int paddingBottom)
```

set padding bottom

| Parameters |
|---|---|
| `int paddingBottom` | padding bottom to be set |

### setPaddingEnd

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setPaddingEnd(int paddingEnd)
```

set padding right

| Parameters |
|---|---|
| `int paddingEnd` | padding right to be set |

### setPaddingStart

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setPaddingStart(int paddingStart)
```

set padding left

| Parameters |
|---|---|
| `int paddingStart` | padding left to be set |

### setPaddingTop

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setPaddingTop(int paddingTop)
```

set padding top

| Parameters |
|---|---|
| `int paddingTop` | padding top to be set |

### setRowWeights

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setRowWeights(@NonNull String rowWeights)
```

Set the row weights

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html rowWeights` | the row weights |

### setRowsSet

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setRowsSet(int rowsSet)
```

Set the number of rows

| Parameters |
|---|---|
| `int rowsSet` | the number of rows |

### setSkips

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setSkips(@NonNull String skips)
```

Set the skips

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html skips` | the skips |

### setSpans

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setSpans(@NonNull String spans)
```

Set the spans

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html spans` | the spans |

### setVerticalGaps

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
public void setVerticalGaps(float verticalGaps)
```

Set the vertical gaps

| Parameters |
|---|---|
| `float verticalGaps` | the vertical gaps |