# ConstraintLayout.LayoutParams

Summary:[Constants](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#constants)\|[Fields](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#lfields)\|[Ctors](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#pubctors)\|[Methods](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#inhmethods)  

# ConstraintLayout.LayoutParams

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The Constraint Layout support library has been superseded by the[AndroidX Constraint Layout library](https://developer.android.com/reference/androidx/constraintlayout/classes), which is part of[Jetpack](https://developer.android.com/jetpack). The`ConstraintLayout.LayoutParams`class has been superseded by[`androidx.constraintlayout.widget.ConstraintLayout.LayoutParams`](https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout.LayoutParams). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX.

`
public
static


class
ConstraintLayout.LayoutParams
`  
`


``

extends MarginLayoutParams


``


`

|---|---|----------------------------------------------------------|
| java.lang.Object                                               |||
| ↳ | ViewGroup.MarginLayoutParams                                ||
|   | ↳ | android.support.constraint.ConstraintLayout.LayoutParams |

<br />

*** ** * ** ***

This class contains the different attributes specifying how a view want to be laid out inside a[ConstraintLayout](https://developer.android.com/reference/android/support/constraint/ConstraintLayout). For building up constraints at run time, using[ConstraintSet](https://developer.android.com/reference/android/support/constraint/ConstraintSet)is recommended.

## Summary

|                                                                                       ### Constants                                                                                       ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [BASELINE](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#BASELINE) The baseline of the text in a view.                          |
| `int` | [BOTTOM](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#BOTTOM) The bottom side of a view.                                       |
| `int` | [END](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#END) The right side of a view in right to left languages.                   |
| `int` | [LEFT](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#LEFT) The left side of a view.                                             |
| `int` | [MATCH_CONSTRAINT](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#MATCH_CONSTRAINT) Dimension will be controlled by constraints. |
| `int` | [PARENT_ID](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#PARENT_ID) References the id of the parent.                           |
| `int` | [RIGHT](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#RIGHT) The right side of a view.                                          |
| `int` | [START](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#START) The left side of a view in left to right languages.                |
| `int` | [TOP](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#TOP) The top of a view.                                                     |
| `int` | [UNSET](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#UNSET) Defines an id that is not set.                                     |

|                                                                                                                                                                                ### Fields                                                                                                                                                                                 ||
|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final int` | [CHAIN_PACKED](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#CHAIN_PACKED) Chain packed style                                                                                                                                                                                              |
| ` public static final int` | [CHAIN_SPREAD](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#CHAIN_SPREAD) Chain spread style                                                                                                                                                                                              |
| ` public static final int` | [CHAIN_SPREAD_INSIDE](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#CHAIN_SPREAD_INSIDE) Chain spread inside style                                                                                                                                                                         |
| ` public static final int` | [HORIZONTAL](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#HORIZONTAL) The horizontal orientation.                                                                                                                                                                                         |
| ` public static final int` | [MATCH_CONSTRAINT_PERCENT](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#MATCH_CONSTRAINT_PERCENT) Set matchConstraintDefault\* percent to be based on a percent of another dimension (by default, the parent) Use to set the matchConstraintDefaultWidth and matchConstraintDefaultHeight |
| ` public static final int` | [MATCH_CONSTRAINT_SPREAD](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#MATCH_CONSTRAINT_SPREAD) Set matchConstraintDefault\* spread as much as possible within its constraints.                                                                                                           |
| ` public static final int` | [MATCH_CONSTRAINT_WRAP](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#MATCH_CONSTRAINT_WRAP) Set matchConstraintDefault\* default to the wrap content size.                                                                                                                                |
| ` public static final int` | [VERTICAL](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#VERTICAL) The vertical orientation.                                                                                                                                                                                               |
| ` public int`              | [baselineToBaseline](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#baselineToBaseline) Constrains the baseline of a child to the baseline of a target child (contains the target child id).                                                                                                |
| ` public int`              | [bottomToBottom](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#bottomToBottom) Constrains the bottom side of a child to the bottom side of a target child (contains the target child id).                                                                                                  |
| ` public int`              | [bottomToTop](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#bottomToTop) Constrains the bottom side of a child to the top side of a target child (contains the target child id).                                                                                                           |
| ` public float`            | [circleAngle](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#circleAngle) The angle used for a circular constraint\]                                                                                                                                                                        |
| ` public int`              | [circleConstraint](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#circleConstraint) Constrains the center of a child to the center of a target child (contains the target child id).                                                                                                        |
| ` public int`              | [circleRadius](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#circleRadius) The radius used for a circular constraint                                                                                                                                                                       |
| ` public boolean`          | [constrainedHeight](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#constrainedHeight) Specify if the vertical dimension is constrained in case both top \& bottom constraints are set and the widget dimension is not a fixed dimension.                                                    |
| ` public boolean`          | [constrainedWidth](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#constrainedWidth) Specify if the horizontal dimension is constrained in case both left \& right constraints are set and the widget dimension is not a fixed dimension.                                                    |
| ` public String`           | [constraintTag](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#constraintTag) Define a category of view to be used by helpers and motionLayout                                                                                                                                              |
| ` public String`           | [dimensionRatio](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#dimensionRatio) The ratio information.                                                                                                                                                                                      |
| ` public int`              | [editorAbsoluteX](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#editorAbsoluteX) The design time location of the left side of the child.                                                                                                                                                   |
| ` public int`              | [editorAbsoluteY](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#editorAbsoluteY) The design time location of the right side of the child.                                                                                                                                                  |
| ` public int`              | [endToEnd](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#endToEnd) Constrains the end side of a child to the end side of a target child (contains the target child id).                                                                                                                    |
| ` public int`              | [endToStart](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#endToStart) Constrains the end side of a child to the start side of a target child (contains the target child id).                                                                                                              |
| ` public int`              | [goneBottomMargin](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#goneBottomMargin) The bottom margin to use when the target is gone.                                                                                                                                                       |
| ` public int`              | [goneEndMargin](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#goneEndMargin) The end margin to use when the target is gone.                                                                                                                                                                |
| ` public int`              | [goneLeftMargin](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#goneLeftMargin) The left margin to use when the target is gone.                                                                                                                                                             |
| ` public int`              | [goneRightMargin](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#goneRightMargin) The right margin to use when the target is gone                                                                                                                                                           |
| ` public int`              | [goneStartMargin](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#goneStartMargin) The start margin to use when the target is gone.                                                                                                                                                          |
| ` public int`              | [goneTopMargin](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#goneTopMargin) The top margin to use when the target is gone.                                                                                                                                                                |
| ` public int`              | [guideBegin](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#guideBegin) The distance of child (guideline) to the top or left edge of its parent.                                                                                                                                            |
| ` public int`              | [guideEnd](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#guideEnd) The distance of child (guideline) to the top or left edge of its parent.                                                                                                                                                |
| ` public float`            | [guidePercent](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#guidePercent) The ratio of the distance to the parent's sides                                                                                                                                                                 |
| ` public boolean`          | [helped](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#helped) <br />                                                                                                                                                                                                                      |
| ` public float`            | [horizontalBias](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#horizontalBias) The ratio between two connections when the left and right (or start and end) sides are constrained.                                                                                                         |
| ` public int`              | [horizontalChainStyle](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#horizontalChainStyle) If the child is the start of a horizontal chain, this attribute will drive how the elements of the chain will be positioned.                                                                    |
| ` public float`            | [horizontalWeight](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#horizontalWeight) The child's weight that we can use to distribute the available horizontal space in a chain, if the dimension behaviour is set to MATCH_CONSTRAINT                                                       |
| ` public int`              | [leftToLeft](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#leftToLeft) Constrains the left side of a child to the left side of a target child (contains the target child id).                                                                                                              |
| ` public int`              | [leftToRight](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#leftToRight) Constrains the left side of a child to the right side of a target child (contains the target child id).                                                                                                           |
| ` public int`              | [matchConstraintDefaultHeight](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#matchConstraintDefaultHeight) Define how the widget vertical dimension is handled when set to MATCH_CONSTRAINT - -- the default.<br />                                                                        |
| ` public int`              | [matchConstraintDefaultWidth](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#matchConstraintDefaultWidth) Define how the widget horizontal dimension is handled when set to MATCH_CONSTRAINT - -- the default.<br />                                                                        |
| ` public int`              | [matchConstraintMaxHeight](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#matchConstraintMaxHeight) Specify a maximum height size for the widget.                                                                                                                                           |
| ` public int`              | [matchConstraintMaxWidth](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#matchConstraintMaxWidth) Specify a maximum width size for the widget.                                                                                                                                              |
| ` public int`              | [matchConstraintMinHeight](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#matchConstraintMinHeight) Specify a minimum height size for the widget.                                                                                                                                           |
| ` public int`              | [matchConstraintMinWidth](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#matchConstraintMinWidth) Specify a minimum width size for the widget.                                                                                                                                              |
| ` public float`            | [matchConstraintPercentHeight](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#matchConstraintPercentHeight) Specify the percentage when using the match constraint percent mode.                                                                                                            |
| ` public float`            | [matchConstraintPercentWidth](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#matchConstraintPercentWidth) Specify the percentage when using the match constraint percent mode.                                                                                                              |
| ` public int`              | [orientation](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#orientation) <br />                                                                                                                                                                                                            |
| ` public int`              | [rightToLeft](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#rightToLeft) Constrains the right side of a child to the left side of a target child (contains the target child id).                                                                                                           |
| ` public int`              | [rightToRight](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#rightToRight) Constrains the right side of a child to the right side of a target child (contains the target child id).                                                                                                        |
| ` public int`              | [startToEnd](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#startToEnd) Constrains the start side of a child to the end side of a target child (contains the target child id).                                                                                                              |
| ` public int`              | [startToStart](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#startToStart) Constrains the start side of a child to the start side of a target child (contains the target child id).                                                                                                        |
| ` public int`              | [topToBottom](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#topToBottom) Constrains the top side of a child to the bottom side of a target child (contains the target child id).                                                                                                           |
| ` public int`              | [topToTop](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#topToTop) Constrains the top side of a child to the top side of a target child (contains the target child id).                                                                                                                    |
| ` public float`            | [verticalBias](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#verticalBias) The ratio between two connections when the top and bottom sides are constrained.                                                                                                                                |
| ` public int`              | [verticalChainStyle](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#verticalChainStyle) If the child is the start of a vertical chain, this attribute will drive how the elements of the chain will be positioned.                                                                          |
| ` public float`            | [verticalWeight](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#verticalWeight) The child's weight that we can use to distribute the available vertical space in a chain, if the dimension behaviour is set to MATCH_CONSTRAINT                                                             |

|                                                                                                                                                                                                        ### Public constructors                                                                                                                                                                                                         ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[ConstraintLayout.LayoutParams](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#ConstraintLayout.LayoutParams(android.support.constraint.ConstraintLayout.LayoutParams))`(`[ConstraintLayout.LayoutParams](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams)` source) ` Create a LayoutParams base on an existing layout Params |
| ` `[ConstraintLayout.LayoutParams](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#ConstraintLayout.LayoutParams(Context,%20AttributeSet))`(Context c, AttributeSet attrs) `                                                                                                                                                                                                       |
| ` `[ConstraintLayout.LayoutParams](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#ConstraintLayout.LayoutParams(ViewGroup.LayoutParams))`(ViewGroup.LayoutParams source) `                                                                                                                                                                                                        |

|                                                                                                        ### Public methods                                                                                                        ||
|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` String` | ` `[getConstraintTag](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#getConstraintTag())`() ` Tag that can be used to identify a view as being a member of a group. |
| ` void`   | ` `[reset](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#reset())`() `                                                                                             |
| ` void`   | ` `[resolveLayoutDirection](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#resolveLayoutDirection(int))`(int layoutDirection) ` <br />                              |
| ` void`   | ` `[validate](https://developer.android.com/reference/android/support/constraint/ConstraintLayout.LayoutParams#validate())`() `                                                                                       |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Constants

### BASELINE

```
public static final int BASELINE
```

The baseline of the text in a view.

<br />

Constant Value: 5 (0x00000005)  

### BOTTOM

```
public static final int BOTTOM
```

The bottom side of a view.

<br />

Constant Value: 4 (0x00000004)  

### END

```
public static final int END
```

The right side of a view in right to left languages. In right to left languages it corresponds to the left side of the view

<br />

Constant Value: 7 (0x00000007)  

### LEFT

```
public static final int LEFT
```

The left side of a view.

<br />

Constant Value: 1 (0x00000001)  

### MATCH_CONSTRAINT

```
public static final int MATCH_CONSTRAINT
```

Dimension will be controlled by constraints.

<br />

Constant Value: 0 (0x00000000)  

### PARENT_ID

```
public static final int PARENT_ID
```

References the id of the parent.

<br />

Constant Value: 0 (0x00000000)  

### RIGHT

```
public static final int RIGHT
```

The right side of a view.

<br />

Constant Value: 2 (0x00000002)  

### START

```
public static final int START
```

The left side of a view in left to right languages. In right to left languages it corresponds to the right side of the view

<br />

Constant Value: 6 (0x00000006)  

### TOP

```
public static final int TOP
```

The top of a view.

<br />

Constant Value: 3 (0x00000003)  

### UNSET

```
public static final int UNSET
```

Defines an id that is not set.

<br />

Constant Value: -1 (0xffffffff)

## Fields

### CHAIN_PACKED

```
public static final int CHAIN_PACKED
```

Chain packed style

<br />

### CHAIN_SPREAD

```
public static final int CHAIN_SPREAD
```

Chain spread style

<br />

### CHAIN_SPREAD_INSIDE

```
public static final int CHAIN_SPREAD_INSIDE
```

Chain spread inside style

<br />

### HORIZONTAL

```
public static final int HORIZONTAL
```

The horizontal orientation.

<br />

### MATCH_CONSTRAINT_PERCENT

```
public static final int MATCH_CONSTRAINT_PERCENT
```

Set matchConstraintDefault\* percent to be based on a percent of another dimension (by default, the parent) Use to set the matchConstraintDefaultWidth and matchConstraintDefaultHeight

<br />

### MATCH_CONSTRAINT_SPREAD

```
public static final int MATCH_CONSTRAINT_SPREAD
```

Set matchConstraintDefault\* spread as much as possible within its constraints. Use to set the matchConstraintDefaultWidth and matchConstraintDefaultHeight

<br />

### MATCH_CONSTRAINT_WRAP

```
public static final int MATCH_CONSTRAINT_WRAP
```

Set matchConstraintDefault\* default to the wrap content size. Use to set the matchConstraintDefaultWidth and matchConstraintDefaultHeight

<br />

### VERTICAL

```
public static final int VERTICAL
```

The vertical orientation.

<br />

### baselineToBaseline

```
public int baselineToBaseline
```

Constrains the baseline of a child to the baseline of a target child (contains the target child id).

<br />

### bottomToBottom

```
public int bottomToBottom
```

Constrains the bottom side of a child to the bottom side of a target child (contains the target child id).

<br />

### bottomToTop

```
public int bottomToTop
```

Constrains the bottom side of a child to the top side of a target child (contains the target child id).

<br />

### circleAngle

```
public float circleAngle
```

The angle used for a circular constraint\]

<br />

### circleConstraint

```
public int circleConstraint
```

Constrains the center of a child to the center of a target child (contains the target child id).

<br />

### circleRadius

```
public int circleRadius
```

The radius used for a circular constraint

<br />

### constrainedHeight

```
public boolean constrainedHeight
```

Specify if the vertical dimension is constrained in case both top \& bottom constraints are set and the widget dimension is not a fixed dimension. By default, if a widget is set to WRAP_CONTENT, we will treat that dimension as a fixed dimension, meaning the dimension will not change regardless of constraints. Setting this attribute to true allows the dimension to change in order to respect constraints.

<br />

### constrainedWidth

```
public boolean constrainedWidth
```

Specify if the horizontal dimension is constrained in case both left \& right constraints are set and the widget dimension is not a fixed dimension. By default, if a widget is set to WRAP_CONTENT, we will treat that dimension as a fixed dimension, meaning the dimension will not change regardless of constraints. Setting this attribute to true allows the dimension to change in order to respect constraints.

<br />

### constraintTag

```
public String constraintTag
```

Define a category of view to be used by helpers and motionLayout

<br />

### dimensionRatio

```
public String dimensionRatio
```

The ratio information.

<br />

### editorAbsoluteX

```
public int editorAbsoluteX
```

The design time location of the left side of the child. Used at design time for a horizontally unconstrained child.

<br />

### editorAbsoluteY

```
public int editorAbsoluteY
```

The design time location of the right side of the child. Used at design time for a vertically unconstrained child.

<br />

### endToEnd

```
public int endToEnd
```

Constrains the end side of a child to the end side of a target child (contains the target child id).

<br />

### endToStart

```
public int endToStart
```

Constrains the end side of a child to the start side of a target child (contains the target child id).

<br />

### goneBottomMargin

```
public int goneBottomMargin
```

The bottom margin to use when the target is gone.

<br />

### goneEndMargin

```
public int goneEndMargin
```

The end margin to use when the target is gone.

<br />

### goneLeftMargin

```
public int goneLeftMargin
```

The left margin to use when the target is gone.

<br />

### goneRightMargin

```
public int goneRightMargin
```

The right margin to use when the target is gone

<br />

### goneStartMargin

```
public int goneStartMargin
```

The start margin to use when the target is gone.

<br />

### goneTopMargin

```
public int goneTopMargin
```

The top margin to use when the target is gone.

<br />

### guideBegin

```
public int guideBegin
```

The distance of child (guideline) to the top or left edge of its parent.

<br />

### guideEnd

```
public int guideEnd
```

The distance of child (guideline) to the top or left edge of its parent.

<br />

### guidePercent

```
public float guidePercent
```

The ratio of the distance to the parent's sides

<br />

### helped

```
public boolean helped
```

<br />

<br />

### horizontalBias

```
public float horizontalBias
```

The ratio between two connections when the left and right (or start and end) sides are constrained.

<br />

### horizontalChainStyle

```
public int horizontalChainStyle
```

If the child is the start of a horizontal chain, this attribute will drive how the elements of the chain will be positioned. The possible values are:

- -- the elements will be spread out
- -- similar, but the endpoints of the chain will not be spread out
- -- the elements of the chain will be packed together. The horizontal bias attribute of the child will then affect the positioning of the packed elements

<br />

<br />

**See also:**

- [ERROR(/CHAIN_SPREAD)](https://developer.android.com/)
- [ERROR(/CHAIN_SPREAD_INSIDE)](https://developer.android.com/)
- [ERROR(/CHAIN_PACKED)](https://developer.android.com/)  

### horizontalWeight

```
public float horizontalWeight
```

The child's weight that we can use to distribute the available horizontal space in a chain, if the dimension behaviour is set to MATCH_CONSTRAINT

<br />

### leftToLeft

```
public int leftToLeft
```

Constrains the left side of a child to the left side of a target child (contains the target child id).

<br />

### leftToRight

```
public int leftToRight
```

Constrains the left side of a child to the right side of a target child (contains the target child id).

<br />

### matchConstraintDefaultHeight

```
public int matchConstraintDefaultHeight
```

Define how the widget vertical dimension is handled when set to MATCH_CONSTRAINT

- -- the default. The dimension will expand up to the constraints, minus margins
- -- DEPRECATED -- use instead WRAP_CONTENT and constrainedHeight=true  
  The dimension will be the same as WRAP_CONTENT, unless the size ends up too large for the constraints; in that case the dimension will expand up to the constraints, minus margins
This attribute may not be applied if the widget is part of a chain in that dimension.
- -- The dimension will be a percent of another widget (by default, the parent)

<br />

<br />

**See also:**

- [ERROR(/MATCH_CONSTRAINT_SPREAD)](https://developer.android.com/)
- [ERROR(/MATCH_CONSTRAINT_WRAP)](https://developer.android.com/)
- [ERROR(/MATCH_CONSTRAINT_PERCENT)](https://developer.android.com/)  

### matchConstraintDefaultWidth

```
public int matchConstraintDefaultWidth
```

Define how the widget horizontal dimension is handled when set to MATCH_CONSTRAINT

- -- the default. The dimension will expand up to the constraints, minus margins
- -- DEPRECATED -- use instead WRAP_CONTENT and constrainedWidth=true  
  The dimension will be the same as WRAP_CONTENT, unless the size ends up too large for the constraints; in that case the dimension will expand up to the constraints, minus margins
This attribute may not be applied if the widget is part of a chain in that dimension.
- -- The dimension will be a percent of another widget (by default, the parent)

<br />

<br />

**See also:**

- [ERROR(/MATCH_CONSTRAINT_SPREAD)](https://developer.android.com/)
- [ERROR(/MATCH_CONSTRAINT_WRAP)](https://developer.android.com/)
- [ERROR(/MATCH_CONSTRAINT_PERCENT)](https://developer.android.com/)  

### matchConstraintMaxHeight

```
public int matchConstraintMaxHeight
```

Specify a maximum height size for the widget. It will only apply if the size of the widget is set to MATCH_CONSTRAINT. Don't apply if the widget is part of an vertical chain.

<br />

### matchConstraintMaxWidth

```
public int matchConstraintMaxWidth
```

Specify a maximum width size for the widget. It will only apply if the size of the widget is set to MATCH_CONSTRAINT. Don't apply if the widget is part of an horizontal chain.

<br />

### matchConstraintMinHeight

```
public int matchConstraintMinHeight
```

Specify a minimum height size for the widget. It will only apply if the size of the widget is set to MATCH_CONSTRAINT. Don't apply if the widget is part of an vertical chain.

<br />

### matchConstraintMinWidth

```
public int matchConstraintMinWidth
```

Specify a minimum width size for the widget. It will only apply if the size of the widget is set to MATCH_CONSTRAINT. Don't apply if the widget is part of an horizontal chain.

<br />

### matchConstraintPercentHeight

```
public float matchConstraintPercentHeight
```

Specify the percentage when using the match constraint percent mode. From 0 to 1.

<br />

### matchConstraintPercentWidth

```
public float matchConstraintPercentWidth
```

Specify the percentage when using the match constraint percent mode. From 0 to 1.

<br />

### orientation

```
public int orientation
```

<br />

<br />

### rightToLeft

```
public int rightToLeft
```

Constrains the right side of a child to the left side of a target child (contains the target child id).

<br />

### rightToRight

```
public int rightToRight
```

Constrains the right side of a child to the right side of a target child (contains the target child id).

<br />

### startToEnd

```
public int startToEnd
```

Constrains the start side of a child to the end side of a target child (contains the target child id).

<br />

### startToStart

```
public int startToStart
```

Constrains the start side of a child to the start side of a target child (contains the target child id).

<br />

### topToBottom

```
public int topToBottom
```

Constrains the top side of a child to the bottom side of a target child (contains the target child id).

<br />

### topToTop

```
public int topToTop
```

Constrains the top side of a child to the top side of a target child (contains the target child id).

<br />

### verticalBias

```
public float verticalBias
```

The ratio between two connections when the top and bottom sides are constrained.

<br />

### verticalChainStyle

```
public int verticalChainStyle
```

If the child is the start of a vertical chain, this attribute will drive how the elements of the chain will be positioned. The possible values are:

- -- the elements will be spread out
- -- similar, but the endpoints of the chain will not be spread out
- -- the elements of the chain will be packed together. The vertical bias attribute of the child will then affect the positioning of the packed elements

<br />

<br />

**See also:**

- [ERROR(/CHAIN_SPREAD)](https://developer.android.com/)
- [ERROR(/CHAIN_SPREAD_INSIDE)](https://developer.android.com/)
- [ERROR(/CHAIN_PACKED)](https://developer.android.com/)  

### verticalWeight

```
public float verticalWeight
```

The child's weight that we can use to distribute the available vertical space in a chain, if the dimension behaviour is set to MATCH_CONSTRAINT

<br />

## Public constructors

### ConstraintLayout.LayoutParams

```
public ConstraintLayout.LayoutParams (ConstraintLayout.LayoutParams source)
```

Create a LayoutParams base on an existing layout Params

<br />

|                                    Parameters                                    ||
|----------|------------------------------------------------------------------------|
| `source` | `ConstraintLayout.LayoutParams`: the Layout Params to be copied <br /> |

### ConstraintLayout.LayoutParams

```
public ConstraintLayout.LayoutParams (Context c, 
                AttributeSet attrs)
```

<br />

<br />

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

### ConstraintLayout.LayoutParams

```
public ConstraintLayout.LayoutParams (ViewGroup.LayoutParams source)
```

<br />

<br />

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

## Public methods

### getConstraintTag

```
public String getConstraintTag ()
```

Tag that can be used to identify a view as being a member of a group. Which can be used for Helpers or in MotionLayout

<br />

|                      Returns                       ||
|----------|------------------------------------------|
| `String` | tag string or null if not defined <br /> |

### reset

```
public void reset ()
```

<br />

<br />

### resolveLayoutDirection

```
public void resolveLayoutDirection (int layoutDirection)
```

<br />

<br />

|           Parameters            ||
|-------------------|--------------|
| `layoutDirection` | `int` <br /> |

### validate

```
public void validate ()
```

<br />

<br />