# GridCore

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/utils/GridCore.java+class:androidx.constraintlayout.core.utils.GridCore) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
public class GridCore extends VirtualLayout
```

<br />

|---|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||||
| ↳ | [androidx.constraintlayout.core.widgets.ConstraintWidget](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget) ||||
|   | ↳ | [androidx.constraintlayout.core.widgets.HelperWidget](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget) |||
|   |   | ↳ | [androidx.constraintlayout.core.widgets.VirtualLayout](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout) ||
|   |   |   | ↳ | [androidx.constraintlayout.core.utils.GridCore](https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore) |

*** ** * ** ***

The Grid Helper in the Core library that helps to enable Grid in Compose

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#HORIZONTAL() = 0` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#SPANS_RESPECT_WIDGET_ORDER() = 2` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#SUB_GRID_BY_COL_ROW() = 1` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#VERTICAL() = 1` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#GridCore()()` |
| `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#GridCore(int,int)(int rows, int columns)` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#addToSolver(androidx.constraintlayout.core.LinearSystem,boolean)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/constraintlayout/core/LinearSystem system, boolean optimize)` Add this widget to the solver |
| `@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/utils/GridCore#getColumnWeights()()` get the string value of columnWeights |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#getContainer()()` get the parent ConstraintWidgetContainer |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#getFlags()()` Get all the flags of a Grid |
| `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#getHorizontalGaps()()` get the value of horizontalGaps |
| `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#getOrientation()()` get the value of orientation |
| `@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/utils/GridCore#getRowWeights()()` get the string value of rowWeights |
| `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#getVerticalGaps()()` get the value of verticalGaps |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#measure(int,int,int,int)(int widthMode, int widthSize, int heightMode, int heightSize)` ////////////////////////////////////////////////////////////////////////////////////////// |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setColumnWeights(java.lang.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html columnWeights)` set new columnWeights value and also invoke invalidate |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setColumns(int)(int columns)` set new columns value |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setContainer(androidx.constraintlayout.core.widgets.ConstraintWidgetContainer)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer container)` Set the parent ConstraintWidgetContainer |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setFlags(int)(int flags)` Set flags of a Grid |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setHorizontalGaps(float)(float horizontalGaps)` set new horizontalGaps value and also invoke invalidate |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setOrientation(int)(int orientation)` set new orientation value |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setRowWeights(java.lang.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html rowWeights)` set new rowWeights value and also invoke invalidate |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setRows(int)(int rows)` set new rows value |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setSkips(java.lang.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html skips)` set new skips value |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setSpans(java.lang.CharSequence)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html spans)` set new spans value |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/utils/GridCore#setVerticalGaps(float)(float verticalGaps)` set new verticalGaps value and also invoke invalidate |

| ### Inherited Constants |
|---|
| From [androidx.constraintlayout.core.widgets.ConstraintWidget](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget) |---|---| | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#ANCHOR_BASELINE() = 4` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#ANCHOR_BOTTOM() = 3` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#ANCHOR_LEFT() = 0` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#ANCHOR_RIGHT() = 1` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#ANCHOR_TOP() = 2` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#BOTH() = 2` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#CHAIN_PACKED() = 2` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#CHAIN_SPREAD() = 0` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#CHAIN_SPREAD_INSIDE() = 1` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#DIRECT() = 2` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#GONE() = 8` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#HORIZONTAL() = 0` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#INVISIBLE() = 4` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#MATCH_CONSTRAINT_PERCENT() = 2` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#MATCH_CONSTRAINT_RATIO() = 3` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#MATCH_CONSTRAINT_RATIO_RESOLVED() = 4` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#MATCH_CONSTRAINT_SPREAD() = 0` ///////////////////////////////////////////////////////////////////////////////////////////// | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#MATCH_CONSTRAINT_WRAP() = 1` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#SOLVER() = 1` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#UNKNOWN() = -1` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#VERTICAL() = 1` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#VISIBLE() = 0` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#WRAP_BEHAVIOR_HORIZONTAL_ONLY() = 1` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#WRAP_BEHAVIOR_INCLUDED() = 0` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#WRAP_BEHAVIOR_SKIPPED() = 3` | | `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#WRAP_BEHAVIOR_VERTICAL_ONLY() = 2` | |

| ### Inherited fields |
|---|
| From [androidx.constraintlayout.core.widgets.ConstraintWidget](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget) |---|---| | `static float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#DEFAULT_BIAS()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/state/WidgetFrame` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#frame()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/analyzer/ChainRun` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#horizontalChainRun()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#horizontalGroup()` ////////////////////////////////END SERIALIZE/////////////////////////////////////////// | | `boolean[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isTerminalWidget()` | | `https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor>` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mAnchors()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mBaseline()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mBottom()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mCenter()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mCircleConstraintAngle()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mDimensionRatio()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mDimensionRatioSide()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mHorizontalResolution()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/analyzer/HorizontalWidgetRun` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mHorizontalRun()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mIsHeightWrapContent()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mIsWidthWrapContent()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mLeft()` | | `ConstraintAnchor[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mListAnchors()` | | `ConstraintWidget.DimensionBehaviour[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mListDimensionBehaviors()` | | `ConstraintWidget[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mListNextMatchConstraintsWidget()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMatchConstraintDefaultHeight()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMatchConstraintDefaultWidth()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMatchConstraintMaxHeight()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMatchConstraintMaxWidth()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMatchConstraintMinHeight()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMatchConstraintMinWidth()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMatchConstraintPercentHeight()` | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMatchConstraintPercentWidth()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMinHeight()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mMinWidth()` | | `ConstraintWidget[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mNextChainWidget()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mOffsetX()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mOffsetY()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mParent()` | | `int[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mResolvedMatchConstraintDefault()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mRight()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mTop()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mVerticalResolution()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/analyzer/VerticalWidgetRun` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mVerticalRun()` | | `float[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mWeight()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mX()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#mY()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#measured()` ///////////////////////////////////////////////////////////////////////////////////////////// | | `WidgetRun[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#run()` | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#stringId()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/analyzer/ChainRun` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#verticalChainRun()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#verticalGroup()` | |
| From [androidx.constraintlayout.core.widgets.HelperWidget](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget) |---|---| | `ConstraintWidget[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget#mWidgets()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget#mWidgetsCount()` | |
| From [androidx.constraintlayout.core.widgets.VirtualLayout](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout) |---|---| | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure.Measure` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#mMeasure()` | |

| ### Inherited methods |
|---|
| From [androidx.constraintlayout.core.widgets.ConstraintWidget](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget) |---|---| | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#addChildrenToSolverByDependency(androidx.constraintlayout.core.widgets.ConstraintWidgetContainer,androidx.constraintlayout.core.LinearSystem,java.util.HashSet<androidx.constraintlayout.core.widgets.ConstraintWidget>,int,boolean)( https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer container, https://developer.android.com/reference/androidx/constraintlayout/core/LinearSystem system, https://developer.android.com/reference/java/util/HashSet.html<https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget> widgets, int orientation, boolean addSelf )` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#allowedInBarrier()()` Returns true if this widget should be used in a barrier | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#connect(androidx.constraintlayout.core.widgets.ConstraintAnchor.Type,androidx.constraintlayout.core.widgets.ConstraintWidget,androidx.constraintlayout.core.widgets.ConstraintAnchor.Type)( https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor.Type constraintFrom, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget target, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor.Type constraintTo )` Connect a given anchor of this widget to another anchor of a target widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#connect(androidx.constraintlayout.core.widgets.ConstraintAnchor,androidx.constraintlayout.core.widgets.ConstraintAnchor,int)(https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor from, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor to, int margin)` Connect the given anchors together (the from anchor should be owned by this widget) | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#connect(androidx.constraintlayout.core.widgets.ConstraintAnchor.Type,androidx.constraintlayout.core.widgets.ConstraintWidget,androidx.constraintlayout.core.widgets.ConstraintAnchor.Type,int)( https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor.Type constraintFrom, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget target, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor.Type constraintTo, int margin )` Connect a given anchor of this widget to another anchor of a target widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#connectCircularConstraint(androidx.constraintlayout.core.widgets.ConstraintWidget,float,int)( https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget target, float angle, int radius )` Set a circular constraint | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#createObjectVariables(androidx.constraintlayout.core.LinearSystem)(https://developer.android.com/reference/androidx/constraintlayout/core/LinearSystem system)` Create all the system variables for this widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#ensureMeasureRequested()()` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#ensureWidgetRuns()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getAnchor(androidx.constraintlayout.core.widgets.ConstraintAnchor.Type)(https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor.Type anchorType)` Given a type of anchor, returns the corresponding anchor. | | `https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor>` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getAnchors()()` Return the array of anchors of this widget | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getBaselineDistance()()` Return the baseline distance relative to the top of the widget | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getBiasPercent(int)(int orientation)` Return the percentage bias that is used when two opposite connections exist of the same strength in a particular orientation. | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getBottom()()` Return the bottom position of the widget | | `https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getCompanionWidget()()` Return the companion widget. | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getContainerItemSkip()()` Accessor for the skip value | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getDebugName()()` Returns the name of this widget (used for debug purposes) | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getDimensionBehaviour(int)(int orientation)` Get the widget's `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour` in an specific orientation. | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getDimensionRatio()()` Return the current ratio of this widget | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getDimensionRatioSide()()` Return the current side on which ratio will be applied | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getHasBaseline()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getHeight()()` Return the height of the widget | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getHorizontalBiasPercent()()` Return the horizontal percentage bias that is used when two opposite connections exist of the same strength. | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getHorizontalChainControlWidget()()` if in a horizontal chain return the left most widget in the chain. | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getHorizontalChainStyle()()` get the chain starting from this widget to be packed. | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getHorizontalDimensionBehaviour()()` Accessor for the horizontal dimension behaviour | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getHorizontalMargin()()` Returns all the horizontal margin of the widget. | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getLastHorizontalMeasureSpec()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getLastVerticalMeasureSpec()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getLeft()()` Return the left position of the widget (similar to `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getX()`) | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getLength(int)(int orientation)` Get a dimension of the widget in a particular orientation. | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getMaxHeight()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getMaxWidth()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getMinHeight()()` Return the minimum height of the widget | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getMinWidth()()` Return the minimum width of the widget | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getNextChainMember(int)(int orientation)` Return the next chain member if one exists | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getOptimizerWrapHeight()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getOptimizerWrapWidth()()` | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getParent()()` Returns the parent of this widget if there is one | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getPreviousChainMember(int)(int orientation)` Return the previous chain member if one exists | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getRight()()` Return the right position of the widget | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getRootX()()` Return the x position of the widget, relative to the root (without animation) | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getRootY()()` Return the y position of the widget, relative to the root (without animation) | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/analyzer/WidgetRun` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getRun(int)(int orientation)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getSceneString(java.lang.StringBuilder)(https://developer.android.com/reference/java/lang/StringBuilder.html ret)` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getTop()()` Return the top position of the widget (similar to `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getY()`) | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getType()()` Returns the type string if set | | `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getVerticalBiasPercent()()` Return the vertical percentage bias that is used when two opposite connections exist of the same strength. | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getVerticalChainControlWidget()()` if in a vertical chain return the top most widget in the chain. | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getVerticalChainStyle()()` Set the chain starting from this widget to be packed. | | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getVerticalDimensionBehaviour()()` Accessor for the vertical dimension behaviour | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getVerticalMargin()()` Returns all the vertical margin of the widget | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getVisibility()()` Returns the current visibility value for this widget | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getWidth()()` Return the width of the widget | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getWrapBehaviorInParent()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getX()()` Return the x position of the widget, relative to its container | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#getY()()` Return the y position of the widget, relative to its container | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#hasBaseline()()` Return true if this widget has a baseline | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#hasDanglingDimension(int)(int orientation)` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#hasDependencies()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#hasDimensionOverride()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#hasResolvedTargets(int,int)(int orientation, int size)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#immediateConnect(androidx.constraintlayout.core.widgets.ConstraintAnchor.Type,androidx.constraintlayout.core.widgets.ConstraintWidget,androidx.constraintlayout.core.widgets.ConstraintAnchor.Type,int,int)( https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor.Type startType, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget target, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor.Type endType, int margin, int goneMargin )` Immediate connection to an anchor without any checks. | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isAnimated()()` Returns if this widget is animated. | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isHeightWrapContent()()` Returns true if height is set to wrap_content | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isHorizontalSolvingPassDone()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isInBarrier(int)(int orientation)` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isInHorizontalChain()()` Test if you are in a Horizontal chain | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isInPlaceholder()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isInVerticalChain()()` Test if you are in a vertical chain | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isInVirtualLayout()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isMeasureRequested()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isResolvedHorizontally()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isResolvedVertically()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isRoot()()` Returns true if the widget is the root widget | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isSpreadHeight()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isSpreadWidth()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isVerticalSolvingPassDone()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#isWidthWrapContent()()` Returns true if width is set to wrap_content | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#markHorizontalSolvingPassDone()()` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#markVerticalSolvingPassDone()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#oppositeDimensionDependsOn(int)(int orientation)` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#oppositeDimensionsTied()()` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#reset()()` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#resetAllConstraints()()` Reset all the constraints set on this widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#resetAnchor(androidx.constraintlayout.core.widgets.ConstraintAnchor)(https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor anchor)` Reset the given anchor | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#resetAnchors()()` Reset all connections | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#resetFinalResolution()()` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#resetSolverVariables(androidx.constraintlayout.core.Cache)(https://developer.android.com/reference/androidx/constraintlayout/core/Cache cache)` Reset the solver variables of the anchors | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#resetSolvingPassFlag()()` | | `https://developer.android.com/reference/java/lang/StringBuilder.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#serialize(java.lang.StringBuilder)(https://developer.android.com/reference/java/lang/StringBuilder.html ret)` Serialize the anchors for JSON5 output | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setAnimated(boolean)(boolean animated)` Set if this widget is animated. | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setBaselineDistance(int)(int baseline)` Set the baseline distance relative to the top of the widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setCompanionWidget(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html companion)` Set the companion widget. | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setContainerItemSkip(int)(int skip)` Set the skip value for this widget. | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setDebugName(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` Set the debug name of this widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setDebugSolverName(androidx.constraintlayout.core.LinearSystem,java.lang.String)(https://developer.android.com/reference/androidx/constraintlayout/core/LinearSystem system, https://developer.android.com/reference/java/lang/String.html name)` Utility debug function. | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setDimension(int,int)(int w, int h)` Set both width and height of the widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setDimensionRatio(java.lang.String)(https://developer.android.com/reference/java/lang/String.html ratio)` Set the ratio of the widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setDimensionRatio(float,int)(float ratio, int dimensionRatioSide)` Set the ratio of the widget The ratio will be applied if at least one of the dimension (width or height) is set to a behaviour of DimensionBehaviour.MATCH_CONSTRAINT -- the dimension's value will be set to the other dimension \* ratio. | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setFinalBaseline(int)(int baselineValue)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setFinalFrame(int,int,int,int,int,int)( int left, int top, int right, int bottom, int baseline, int orientation )` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setFinalHorizontal(int,int)(int x1, int x2)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setFinalLeft(int)(int x1)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setFinalTop(int)(int y1)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setFinalVertical(int,int)(int y1, int y2)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setFrame(int,int,int)(int start, int end, int orientation)` Set the position+dimension of the widget based on starting/ending positions on one dimension. | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setFrame(int,int,int,int)(int left, int top, int right, int bottom)` Set the position+dimension of the widget given left/top/right/bottom | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setGoneMargin(androidx.constraintlayout.core.widgets.ConstraintAnchor.Type,int)(https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintAnchor.Type type, int goneMargin)` Set the margin to be used when connected to a widget with a visibility of GONE | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setHasBaseline(boolean)(boolean hasBaseline)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setHeight(int)(int h)` Set the height of the widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setHeightWrapContent(boolean)(boolean heightWrapContent)` Keep track of wrap_content for height | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setHorizontalBiasPercent(float)(float horizontalBiasPercent)` Set the horizontal bias percent to apply when we have two opposite constraints of equal strength | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setHorizontalChainStyle(int)(int horizontalChainStyle)` Set the chain starting from this widget to be packed. | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setHorizontalDimension(int,int)(int left, int right)` Set the positions for the horizontal dimension only | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setHorizontalDimensionBehaviour(androidx.constraintlayout.core.widgets.ConstraintWidget.DimensionBehaviour)( https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour behaviour )` Set the widget's behaviour for the horizontal dimension | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setHorizontalMatchStyle(int,int,int,float)( int horizontalMatchStyle, int min, int max, float percent )` Set the horizontal style when MATCH_CONSTRAINT is set | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setHorizontalWeight(float)(float horizontalWeight)` Set the horizontal weight (only used in chains) | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setInBarrier(int,boolean)(int orientation, boolean value)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setInPlaceholder(boolean)(boolean inPlaceholder)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setInVirtualLayout(boolean)(boolean inVirtualLayout)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setLastMeasureSpec(int,int)(int horizontal, int vertical)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setLength(int,int)(int length, int orientation)` Set the dimension of a widget in a particular orientation. | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setMaxHeight(int)(int maxHeight)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setMaxWidth(int)(int maxWidth)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setMeasureRequested(boolean)(boolean measureRequested)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setMinHeight(int)(int h)` Set the minimum height of the widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setMinWidth(int)(int w)` Set the minimum width of the widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setOffset(int,int)(int x, int y)` Set the offset of this widget relative to the root widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setOrigin(int,int)(int x, int y)` Set both the origin in (x, y) of the widget, relative to its container | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setParent(androidx.constraintlayout.core.widgets.ConstraintWidget)(https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget widget)` Set the parent of this widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setType(java.lang.String)(https://developer.android.com/reference/java/lang/String.html type)` Set the type of the widget (as a String) | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setVerticalBiasPercent(float)(float verticalBiasPercent)` Set the vertical bias percent to apply when we have two opposite constraints of equal strength | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setVerticalChainStyle(int)(int verticalChainStyle)` Set the chain starting from this widget to be packed. | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setVerticalDimension(int,int)(int top, int bottom)` Set the positions for the vertical dimension only | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setVerticalDimensionBehaviour(androidx.constraintlayout.core.widgets.ConstraintWidget.DimensionBehaviour)( https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour behaviour )` Set the widget's behaviour for the vertical dimension | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setVerticalMatchStyle(int,int,int,float)( int verticalMatchStyle, int min, int max, float percent )` Set the vertical style when MATCH_CONSTRAINT is set | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setVerticalWeight(float)(float verticalWeight)` Set the vertical weight (only used in chains) | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setVisibility(int)(int visibility)` Set the visibility for this widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setWidth(int)(int w)` Set the width of the widget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setWidthWrapContent(boolean)(boolean widthWrapContent)` Keep track of wrap_content for width | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setWrapBehaviorInParent(int)(int behavior)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setX(int)(int x)` Set the x position of the widget, relative to its container | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setY(int)(int y)` Set the y position of the widget, relative to its container | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#setupDimensionRatio(boolean,boolean,boolean,boolean)( boolean hParentWrapContent, boolean vParentWrapContent, boolean horizontalDimensionFixed, boolean verticalDimensionFixed )` Resolves the dimension ratio parameters (mResolvedDimensionRatioSide \&mDimensionRatio) | | `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#toString()()` Returns a string representation of the ConstraintWidget | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#updateFromRuns(boolean,boolean)(boolean updateHorizontal, boolean updateVertical)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget#updateFromSolver(androidx.constraintlayout.core.LinearSystem,boolean)(https://developer.android.com/reference/androidx/constraintlayout/core/LinearSystem system, boolean optimize)` Update the widget from the values generated by the solver | |
| From [androidx.constraintlayout.core.widgets.HelperWidget](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget) |---|---| | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget#add(androidx.constraintlayout.core.widgets.ConstraintWidget)(https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget widget)` Add a widget to the helper | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget#addDependents(java.util.ArrayList<androidx.constraintlayout.core.widgets.analyzer.WidgetGroup>,int,androidx.constraintlayout.core.widgets.analyzer.WidgetGroup)( https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/androidx/constraintlayout/core/widgets/analyzer/WidgetGroup> dependencyLists, int orientation, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/analyzer/WidgetGroup group )` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget#copy(androidx.constraintlayout.core.widgets.ConstraintWidget,java.util.HashMap<androidx.constraintlayout.core.widgets.ConstraintWidget,androidx.constraintlayout.core.widgets.ConstraintWidget>)( https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget src, https://developer.android.com/reference/java/util/HashMap.html<https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget> map )` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget#findGroupInDependents(int)(int orientation)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/HelperWidget#removeAllIds()()` Reset the widgets list contained by this helper | |
| From [androidx.constraintlayout.core.widgets.VirtualLayout](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout) |---|---| | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#applyRtl(boolean)(boolean isRtl)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#captureWidgets()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#contains(java.util.HashSet<androidx.constraintlayout.core.widgets.ConstraintWidget>)(https://developer.android.com/reference/java/util/HashSet.html<https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget> widgets)` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#getMeasuredHeight()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#getMeasuredWidth()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#getPaddingBottom()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#getPaddingLeft()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#getPaddingRight()()` | | `int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#getPaddingTop()()` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#measure(androidx.constraintlayout.core.widgets.ConstraintWidget,androidx.constraintlayout.core.widgets.ConstraintWidget.DimensionBehaviour,int,androidx.constraintlayout.core.widgets.ConstraintWidget.DimensionBehaviour,int)( https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget widget, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour horizontalBehavior, int horizontalDimension, https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour verticalBehavior, int verticalDimension )` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#measureChildren()()` | | `boolean` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#needSolverPass()()` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#needsCallbackFromSolver(boolean)(boolean value)` ////////////////////////////////////////////////////////////////////////////////////////// | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#setMeasure(int,int)(int width, int height)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#setPadding(int)(int value)` ////////////////////////////////////////////////////////////////////////////////////////// | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#setPaddingBottom(int)(int value)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#setPaddingEnd(int)(int value)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#setPaddingLeft(int)(int value)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#setPaddingRight(int)(int value)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#setPaddingStart(int)(int value)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#setPaddingTop(int)(int value)` | | `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/VirtualLayout#updateConstraints(androidx.constraintlayout.core.widgets.ConstraintWidgetContainer)(https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer container)` | |

## Constants

### HORIZONTAL

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

```
public static final int HORIZONTAL = 0
```

### SPANS_RESPECT_WIDGET_ORDER

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

```
public static final int SPANS_RESPECT_WIDGET_ORDER = 2
```

### SUB_GRID_BY_COL_ROW

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

```
public static final int SUB_GRID_BY_COL_ROW = 1
```

### VERTICAL

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

```
public static final int VERTICAL = 1
```

## Public constructors

### GridCore

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

```
public GridCore()
```

### GridCore

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

```
public GridCore(int rows, int columns)
```

## Public methods

### addToSolver

```
public void addToSolver(@Nullable LinearSystem system, boolean optimize)
```

Add this widget to the solver

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/constraintlayout/core/LinearSystem system` | the solver we want to add the widget to |
| `boolean optimize` | true if `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Optimizer#OPTIMIZATION_GRAPH()` is on |

### getColumnWeights

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

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

get the string value of columnWeights

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

### getContainer

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

```
public @Nullable ConstraintWidgetContainer getContainer()
```

get the parent ConstraintWidgetContainer

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer` | the parent ConstraintWidgetContainer |

### 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 |

### getHorizontalGaps

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

```
public float getHorizontalGaps()
```

get the value of horizontalGaps

| Returns |
|---|---|
| `float` | the value of horizontalGaps |

### getOrientation

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

```
public int getOrientation()
```

get the value of orientation

| Returns |
|---|---|
| `int` | the value of orientation |

### getRowWeights

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

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

get the string value of rowWeights

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

### getVerticalGaps

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

```
public float getVerticalGaps()
```

get the value of verticalGaps

| Returns |
|---|---|
| `float` | the value of verticalGaps |

### measure

```
public void measure(int widthMode, int widthSize, int heightMode, int heightSize)
```

//////////////////////////////////////////////////////////////////////////////////////////

### setColumnWeights

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

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

set new columnWeights value and also invoke invalidate

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

### setColumns

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

```
public void setColumns(int columns)
```

set new columns value

| Parameters |
|---|---|
| `int columns` | new rows value |

### setContainer

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

```
public void setContainer(@NonNull ConstraintWidgetContainer container)
```

Set the parent ConstraintWidgetContainer

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer container` | the parent ConstraintWidgetContainer |

### 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 |

### setHorizontalGaps

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

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

set new horizontalGaps value and also invoke invalidate

| Parameters |
|---|---|
| `float horizontalGaps` | new horizontalGaps value |

### setOrientation

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

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

set new orientation value

| Parameters |
|---|---|
| `int orientation` | new orientation value |

### setRowWeights

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

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

set new rowWeights value and also invoke invalidate

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

### setRows

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

```
public void setRows(int rows)
```

set new rows value

| Parameters |
|---|---|
| `int rows` | new rows value |

### setSkips

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

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

set new skips value

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

### setSpans

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

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

set new spans value

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

### setVerticalGaps

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

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

set new verticalGaps value and also invoke invalidate

| Parameters |
|---|---|
| `float verticalGaps` | new verticalGaps value |