# Flow

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

*** ** * ** ***


```
public class Flow 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.widgets.Flow](https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow) |

*** ** * ** ***

Implements the Flow virtual layout.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#HORIZONTAL_ALIGN_CENTER() = 2` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#HORIZONTAL_ALIGN_END() = 1` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#HORIZONTAL_ALIGN_START() = 0` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#VERTICAL_ALIGN_BASELINE() = 3` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#VERTICAL_ALIGN_BOTTOM() = 1` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#VERTICAL_ALIGN_CENTER() = 2` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#VERTICAL_ALIGN_TOP() = 0` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#WRAP_ALIGNED() = 2` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#WRAP_CHAIN() = 1` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#WRAP_CHAIN_NEW() = 3` |
| `static final int` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#WRAP_NONE() = 0` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#Flow()()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#addToSolver(androidx.constraintlayout.core.LinearSystem,boolean)(https://developer.android.com/reference/androidx/constraintlayout/core/LinearSystem system, boolean optimize)` Add this widget to the solver |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#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 )` |
| `float` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#getMaxElementsWrap()()` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#measure(int,int,int,int)(int widthMode, int widthSize, int heightMode, int heightSize)` ////////////////////////////////////////////////////////////////////////////////////////// |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setFirstHorizontalBias(float)(float value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setFirstHorizontalStyle(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setFirstVerticalBias(float)(float value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setFirstVerticalStyle(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setHorizontalAlign(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setHorizontalBias(float)(float value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setHorizontalGap(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setHorizontalStyle(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setLastHorizontalBias(float)(float value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setLastHorizontalStyle(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setLastVerticalBias(float)(float value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setLastVerticalStyle(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setMaxElementsWrap(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setOrientation(int)(int value)` ////////////////////////////////////////////////////////////////////////////////////////// |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setVerticalAlign(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setVerticalBias(float)(float value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setVerticalGap(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setVerticalStyle(int)(int value)` |
| `void` | `https://developer.android.com/reference/androidx/constraintlayout/core/widgets/Flow#setWrapMode(int)(int value)` |

| ### 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 )` | | `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_ALIGN_CENTER

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

```
public static final int HORIZONTAL_ALIGN_CENTER = 2
```

### HORIZONTAL_ALIGN_END

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

```
public static final int HORIZONTAL_ALIGN_END = 1
```

### HORIZONTAL_ALIGN_START

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

```
public static final int HORIZONTAL_ALIGN_START = 0
```

### VERTICAL_ALIGN_BASELINE

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

```
public static final int VERTICAL_ALIGN_BASELINE = 3
```

### VERTICAL_ALIGN_BOTTOM

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

```
public static final int VERTICAL_ALIGN_BOTTOM = 1
```

### VERTICAL_ALIGN_CENTER

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

```
public static final int VERTICAL_ALIGN_CENTER = 2
```

### VERTICAL_ALIGN_TOP

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

```
public static final int VERTICAL_ALIGN_TOP = 0
```

### WRAP_ALIGNED

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

```
public static final int WRAP_ALIGNED = 2
```

### WRAP_CHAIN

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

```
public static final int WRAP_CHAIN = 1
```

### WRAP_CHAIN_NEW

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

```
public static final int WRAP_CHAIN_NEW = 3
```

### WRAP_NONE

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

```
public static final int WRAP_NONE = 0
```

## Public constructors

### Flow

Added in 1.1.2

```
public Flow()
```

## Public methods

### addToSolver

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

Add this widget to the solver

| Parameters |
|---|---|
| `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 |

### copy

```
public void copy(
    ConstraintWidget src,
    HashMap<ConstraintWidget, ConstraintWidget> map
)
```

### getMaxElementsWrap

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

```
public float getMaxElementsWrap()
```

### measure

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

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

### setFirstHorizontalBias

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

```
public void setFirstHorizontalBias(float value)
```

### setFirstHorizontalStyle

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

```
public void setFirstHorizontalStyle(int value)
```

### setFirstVerticalBias

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

```
public void setFirstVerticalBias(float value)
```

### setFirstVerticalStyle

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

```
public void setFirstVerticalStyle(int value)
```

### setHorizontalAlign

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

```
public void setHorizontalAlign(int value)
```

### setHorizontalBias

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

```
public void setHorizontalBias(float value)
```

### setHorizontalGap

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

```
public void setHorizontalGap(int value)
```

### setHorizontalStyle

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

```
public void setHorizontalStyle(int value)
```

### setLastHorizontalBias

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

```
public void setLastHorizontalBias(float value)
```

### setLastHorizontalStyle

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

```
public void setLastHorizontalStyle(int value)
```

### setLastVerticalBias

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

```
public void setLastVerticalBias(float value)
```

### setLastVerticalStyle

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

```
public void setLastVerticalStyle(int value)
```

### setMaxElementsWrap

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

```
public void setMaxElementsWrap(int value)
```

### setOrientation

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

```
public void setOrientation(int value)
```

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

### setVerticalAlign

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

```
public void setVerticalAlign(int value)
```

### setVerticalBias

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

```
public void setVerticalBias(float value)
```

### setVerticalGap

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

```
public void setVerticalGap(int value)
```

### setVerticalStyle

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

```
public void setVerticalStyle(int value)
```

### setWrapMode

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

```
public void setWrapMode(int value)
```