# ConstraintProperties

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

# ConstraintProperties

| 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`ConstraintProperties`class has been superseded by[`androidx.constraintlayout.widget.ConstraintProperties`](https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintProperties). 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


class
ConstraintProperties
`  
`

extends Object


``


`

|---|-------------------------------------------------|
| java.lang.Object                                   ||
| ↳ | android.support.constraint.ConstraintProperties |

<br />

*** ** * ** ***

**Added in 2.0**

ConstraintProperties provides an easy to use api to update the layout params of[ConstraintLayout](https://developer.android.com/reference/android/support/constraint/ConstraintLayout)children

<br />

## Summary

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

|                                                                                                                           ### Fields                                                                                                                            ||
|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final int` | [MATCH_CONSTRAINT_SPREAD](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#MATCH_CONSTRAINT_SPREAD) Calculate the size of a view in 0 dp by reducing the constrains gaps as much as possible |
| ` public static final int` | [MATCH_CONSTRAINT_WRAP](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#MATCH_CONSTRAINT_WRAP) How to calculate the size of a view in 0 dp by using its wrap_content size                   |
| ` public static final int` | [WRAP_CONTENT](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#WRAP_CONTENT) Dimension will set by the view's content                                                                       |

|                                                                    ### Public constructors                                                                     ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#ConstraintProperties(View))`(View view) ` |

|                                                                                                                                                                                                                                           ### Public methods                                                                                                                                                                                                                                            ||
|--------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[addToHorizontalChain](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#addToHorizontalChain(int,%20int))`(int leftId, int rightId) ` Adds the view to a horizontal chain.                                                                                                                                                                |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[addToHorizontalChainRTL](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#addToHorizontalChainRTL(int,%20int))`(int leftId, int rightId) ` Adds the view to a horizontal chain using RTL attributes.                                                                                                                                     |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[addToVerticalChain](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#addToVerticalChain(int,%20int))`(int topId, int bottomId) ` Adds a view to a vertical chain.                                                                                                                                                                        |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[alpha](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#alpha(float))`(float alpha) ` Adjust the alpha of a view.                                                                                                                                                                                                                        |
| ` void`                                                                                                            | ` `[apply](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#apply())`() `                                                                                                                                                                                                                                                                    |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[center](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#center(int,%20int,%20int,%20int,%20int,%20int,%20float))`(int firstID, int firstSide, int firstMargin, int secondId, int secondSide, int secondMargin, float bias) ` Center view between the other two widgets.                                                                 |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[centerHorizontally](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#centerHorizontally(int))`(int toView) ` Centers the view horizontally relative to toView's position.                                                                                                                                                                |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[centerHorizontally](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#centerHorizontally(int,%20int,%20int,%20int,%20int,%20int,%20float))`(int leftId, int leftSide, int leftMargin, int rightId, int rightSide, int rightMargin, float bias) ` Centers the widget horizontally to the left and right side on another widgets sides.     |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[centerHorizontallyRtl](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#centerHorizontallyRtl(int))`(int toView) ` Centers the view horizontally relative to toView's position.                                                                                                                                                          |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[centerHorizontallyRtl](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#centerHorizontallyRtl(int,%20int,%20int,%20int,%20int,%20int,%20float))`(int startId, int startSide, int startMargin, int endId, int endSide, int endMargin, float bias) ` Centers the widgets horizontally to the left and right side on another widgets sides. |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[centerVertically](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#centerVertically(int,%20int,%20int,%20int,%20int,%20int,%20float))`(int topId, int topSide, int topMargin, int bottomId, int bottomSide, int bottomMargin, float bias) ` Centers the widgets Vertically to the top and bottom side on another widgets sides.          |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[centerVertically](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#centerVertically(int))`(int toView) ` Centers the view vertically relative to toView's position.                                                                                                                                                                      |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[connect](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#connect(int,%20int,%20int,%20int))`(int startSide, int endID, int endSide, int margin) ` Create a constraint between two widgets.                                                                                                                                              |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[constrainDefaultHeight](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#constrainDefaultHeight(int))`(int height) ` Sets how the height is calculated ether MATCH_CONSTRAINT_WRAP or MATCH_CONSTRAINT_SPREAD.                                                                                                                           |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[constrainDefaultWidth](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#constrainDefaultWidth(int))`(int width) ` Sets how the width is calculated ether MATCH_CONSTRAINT_WRAP or MATCH_CONSTRAINT_SPREAD.                                                                                                                               |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[constrainHeight](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#constrainHeight(int))`(int height) ` Sets the height of the view.                                                                                                                                                                                                      |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[constrainMaxHeight](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#constrainMaxHeight(int))`(int height) ` Sets the maximum height of the view.                                                                                                                                                                                        |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[constrainMaxWidth](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#constrainMaxWidth(int))`(int width) ` Sets the maximum width of the view.                                                                                                                                                                                            |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[constrainMinHeight](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#constrainMinHeight(int))`(int height) ` Sets the minimum height of the view.                                                                                                                                                                                        |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[constrainMinWidth](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#constrainMinWidth(int))`(int width) ` Sets the minimum width of the view.                                                                                                                                                                                            |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[constrainWidth](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#constrainWidth(int))`(int width) ` Sets the width of the view.                                                                                                                                                                                                          |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[dimensionRatio](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#dimensionRatio(java.lang.String))`(String ratio) ` Constrains the views aspect ratio.                                                                                                                                                                                   |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[elevation](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#elevation(float))`(float elevation) ` Set the elevation of a view.                                                                                                                                                                                                           |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[goneMargin](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#goneMargin(int,%20int))`(int anchor, int value) ` Sets the gone margin.                                                                                                                                                                                                     |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[horizontalBias](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#horizontalBias(float))`(float bias) ` Adjust the horizontal bias of the view (used with views constrained on left and right).                                                                                                                                           |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[horizontalChainStyle](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#horizontalChainStyle(int))`(int chainStyle) ` How the elements of the horizontal chain will be positioned.                                                                                                                                                        |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[horizontalWeight](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#horizontalWeight(float))`(float weight) ` 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                                                                           |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[margin](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#margin(int,%20int))`(int anchor, int value) ` Sets the margin.                                                                                                                                                                                                                  |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[removeConstraints](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#removeConstraints(int))`(int anchor) ` Remove a constraint from this view.                                                                                                                                                                                           |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[removeFromHorizontalChain](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#removeFromHorizontalChain())`() ` Removes a view from a vertical chain.                                                                                                                                                                                      |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[removeFromVerticalChain](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#removeFromVerticalChain())`() ` Removes a view from a vertical chain.                                                                                                                                                                                          |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[rotation](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#rotation(float))`(float rotation) ` Adjust the post-layout rotation about the Z axis of a view.                                                                                                                                                                               |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[rotationX](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#rotationX(float))`(float rotationX) ` Adjust the post-layout rotation about the X axis of a view.                                                                                                                                                                            |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[rotationY](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#rotationY(float))`(float rotationY) ` Adjust the post-layout rotation about the Y axis of a view.                                                                                                                                                                            |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[scaleX](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#scaleX(float))`(float scaleX) ` Adjust the post-layout scale in X of a view.                                                                                                                                                                                                    |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[scaleY](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#scaleY(float))`(float scaleY) ` Adjust the post-layout scale in Y of a view.                                                                                                                                                                                                    |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[transformPivot](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#transformPivot(float,%20float))`(float transformPivotX, float transformPivotY) ` Set X and Y location of the pivot point around which the view will rotate and scale.                                                                                                   |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[transformPivotX](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#transformPivotX(float))`(float transformPivotX) ` Set X location of the pivot point around which the view will rotate and scale.                                                                                                                                       |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[transformPivotY](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#transformPivotY(float))`(float transformPivotY) ` Set Y location of the pivot point around which the view will rotate and scale.                                                                                                                                       |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[translation](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#translation(float,%20float))`(float translationX, float translationY) ` Adjust the post-layout X and Y translation of a view.                                                                                                                                              |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[translationX](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#translationX(float))`(float translationX) ` Adjust the post-layout X translation of a view.                                                                                                                                                                               |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[translationY](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#translationY(float))`(float translationY) ` Adjust the post-layout Y translation of a view.                                                                                                                                                                               |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[translationZ](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#translationZ(float))`(float translationZ) ` Adjust the post-layout translation in Z of a view.                                                                                                                                                                            |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[verticalBias](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#verticalBias(float))`(float bias) ` Adjust the vertical bias of the view (used with views constrained on left and right).                                                                                                                                                 |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[verticalChainStyle](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#verticalChainStyle(int))`(int chainStyle) ` How the elements of the vertical chain will be positioned.                                                                                                                                                              |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[verticalWeight](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#verticalWeight(float))`(float weight) ` 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                                                                                 |
| ` `[ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | ` `[visibility](https://developer.android.com/reference/android/support/constraint/ConstraintProperties#visibility(int))`(int visibility) ` Adjust the visibility of a view.                                                                                                                                                                                                        |

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

Used to indicate a parameter is cleared or not set

<br />

Constant Value: -1 (0xffffffff)

## Fields

### MATCH_CONSTRAINT_SPREAD

```
public static final int MATCH_CONSTRAINT_SPREAD
```

Calculate the size of a view in 0 dp by reducing the constrains gaps as much as possible

<br />

### MATCH_CONSTRAINT_WRAP

```
public static final int MATCH_CONSTRAINT_WRAP
```

How to calculate the size of a view in 0 dp by using its wrap_content size

<br />

### WRAP_CONTENT

```
public static final int WRAP_CONTENT
```

Dimension will set by the view's content

<br />

## Public constructors

### ConstraintProperties

```
public ConstraintProperties (View view)
```

<br />

<br />

|      Parameters       ||
|--------|---------------|
| `view` | `View` <br /> |

## Public methods

### addToHorizontalChain

```
public ConstraintProperties addToHorizontalChain (int leftId, 
                int rightId)
```

Adds the view to a horizontal chain.

<br />

|                          Parameters                           ||
|-----------|----------------------------------------------------|
| `leftId`  | `int`: id of the view in chain to the left <br />  |
| `rightId` | `int`: id of the view in chain to the right <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### addToHorizontalChainRTL

```
public ConstraintProperties addToHorizontalChainRTL (int leftId, 
                int rightId)
```

Adds the view to a horizontal chain using RTL attributes.

<br />

|                          Parameters                           ||
|-----------|----------------------------------------------------|
| `leftId`  | `int`: id of the view in chain to the left <br />  |
| `rightId` | `int`: id of the view in chain to the right <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### addToVerticalChain

```
public ConstraintProperties addToVerticalChain (int topId, 
                int bottomId)
```

Adds a view to a vertical chain.

<br />

|              Parameters               ||
|------------|---------------------------|
| `topId`    | `int`: view above. <br /> |
| `bottomId` | `int`: view below <br />  |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### alpha

```
public ConstraintProperties alpha (float alpha)
```

Adjust the alpha of a view.

<br />

|             Parameters             ||
|---------|---------------------------|
| `alpha` | `float`: the alpha <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### apply

```
public void apply ()
```

<br />

<br />

### center

```
public ConstraintProperties center (int firstID, 
                int firstSide, 
                int firstMargin, 
                int secondId, 
                int secondSide, 
                int secondMargin, 
                float bias)
```

Center view between the other two widgets.

<br />

|                                              Parameters                                               ||
|----------------|---------------------------------------------------------------------------------------|
| `firstID`      | `int`: ID of the first widget to connect the left or top of the widget to <br />      |
| `firstSide`    | `int`: the side of the widget to connect to <br />                                    |
| `firstMargin`  | `int`: the connection margin <br />                                                   |
| `secondId`     | `int`: the ID of the second widget to connect to right or top of the widget to <br /> |
| `secondSide`   | `int`: the side of the widget to connect to <br />                                    |
| `secondMargin` | `int`: the connection margin <br />                                                   |
| `bias`         | `float`: the ratio between two connections <br />                                     |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### centerHorizontally

```
public ConstraintProperties centerHorizontally (int toView)
```

Centers the view horizontally relative to toView's position.

<br />

|                       Parameters                        ||
|----------|-----------------------------------------------|
| `toView` | `int`: ID of view to center on (or in) <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### centerHorizontally

```
public ConstraintProperties centerHorizontally (int leftId, 
                int leftSide, 
                int leftMargin, 
                int rightId, 
                int rightSide, 
                int rightMargin, 
                float bias)
```

Centers the widget horizontally to the left and right side on another widgets sides.

<br />

|                                                 Parameters                                                  ||
|---------------|----------------------------------------------------------------------------------------------|
| `leftId`      | `int`: The Id of the widget on the left side <br />                                          |
| `leftSide`    | `int`: The side of the leftId widget to connect to <br />                                    |
| `leftMargin`  | `int`: The margin on the left side <br />                                                    |
| `rightId`     | `int`: The Id of the widget on the right side <br />                                         |
| `rightSide`   | `int`: The side of the rightId widget to connect to <br />                                   |
| `rightMargin` | `int`: The margin on the right side <br />                                                   |
| `bias`        | `float`: The ratio of the space on the left vs. right sides 0.5 is centered (default) <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### centerHorizontallyRtl

```
public ConstraintProperties centerHorizontallyRtl (int toView)
```

Centers the view horizontally relative to toView's position.

<br />

|                       Parameters                        ||
|----------|-----------------------------------------------|
| `toView` | `int`: ID of view to center on (or in) <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### centerHorizontallyRtl

```
public ConstraintProperties centerHorizontallyRtl (int startId, 
                int startSide, 
                int startMargin, 
                int endId, 
                int endSide, 
                int endMargin, 
                float bias)
```

Centers the widgets horizontally to the left and right side on another widgets sides.

<br />

|                                                Parameters                                                ||
|---------------|-------------------------------------------------------------------------------------------|
| `startId`     | `int`: The Id of the widget on the start side (left in non rtl languages) <br />          |
| `startSide`   | `int`: The side of the startId widget to connect to <br />                                |
| `startMargin` | `int`: The margin on the start side <br />                                                |
| `endId`       | `int`: The Id of the widget on the start side (left in non rtl languages) <br />          |
| `endSide`     | `int`: The side of the endId widget to connect to <br />                                  |
| `endMargin`   | `int`: The margin on the end side <br />                                                  |
| `bias`        | `float`: The ratio of the space on the start vs end side 0.5 is centered (default) <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### centerVertically

```
public ConstraintProperties centerVertically (int topId, 
                int topSide, 
                int topMargin, 
                int bottomId, 
                int bottomSide, 
                int bottomMargin, 
                float bias)
```

Centers the widgets Vertically to the top and bottom side on another widgets sides.

<br />

|                                                  Parameters                                                  ||
|----------------|----------------------------------------------------------------------------------------------|
| `topId`        | `int`: The Id of the widget on the top side <br />                                           |
| `topSide`      | `int`: The side of the leftId widget to connect to <br />                                    |
| `topMargin`    | `int`: The margin on the top side <br />                                                     |
| `bottomId`     | `int`: The Id of the widget on the bottom side <br />                                        |
| `bottomSide`   | `int`: The side of the bottomId widget to connect to <br />                                  |
| `bottomMargin` | `int`: The margin on the bottom side <br />                                                  |
| `bias`         | `float`: The ratio of the space on the top vs. bottom sides 0.5 is centered (default) <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### centerVertically

```
public ConstraintProperties centerVertically (int toView)
```

Centers the view vertically relative to toView's position.

<br />

|                       Parameters                        ||
|----------|-----------------------------------------------|
| `toView` | `int`: ID of view to center on (or in) <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### connect

```
public ConstraintProperties connect (int startSide, 
                int endID, 
                int endSide, 
                int margin)
```

Create a constraint between two widgets.

<br />

|                                  Parameters                                  ||
|-------------|-----------------------------------------------------------------|
| `startSide` | `int`: the side of the widget to constrain <br />               |
| `endID`     | `int`: the id of the widget to constrain to <br />              |
| `endSide`   | `int`: the side of widget to constrain to <br />                |
| `margin`    | `int`: the margin to constrain (margin must be positive) <br /> |

|                                                         Returns                                                         ||
|-----------------------------------------------------------------------------------------------------------------|--------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | <br /> |

### constrainDefaultHeight

```
public ConstraintProperties constrainDefaultHeight (int height)
```

Sets how the height is calculated ether MATCH_CONSTRAINT_WRAP or MATCH_CONSTRAINT_SPREAD. Default is spread.

<br />

|                                Parameters                                ||
|----------|----------------------------------------------------------------|
| `height` | `int`: MATCH_CONSTRAINT_WRAP or MATCH_CONSTRAINT_SPREAD <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### constrainDefaultWidth

```
public ConstraintProperties constrainDefaultWidth (int width)
```

Sets how the width is calculated ether MATCH_CONSTRAINT_WRAP or MATCH_CONSTRAINT_SPREAD. Default is spread.

<br />

|                               Parameters                                ||
|---------|----------------------------------------------------------------|
| `width` | `int`: MATCH_CONSTRAINT_WRAP or MATCH_CONSTRAINT_SPREAD <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### constrainHeight

```
public ConstraintProperties constrainHeight (int height)
```

Sets the height of the view.

<br />

|                   Parameters                   ||
|----------|--------------------------------------|
| `height` | `int`: the height of the view <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### constrainMaxHeight

```
public ConstraintProperties constrainMaxHeight (int height)
```

Sets the maximum height of the view. It is a dimension, It is only applicable if height is #MATCH_CONSTRAINT}.

<br />

|                       Parameters                       ||
|----------|----------------------------------------------|
| `height` | `int`: the maximum height of the view <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### constrainMaxWidth

```
public ConstraintProperties constrainMaxWidth (int width)
```

Sets the maximum width of the view. It is a dimension, It is only applicable if height is #MATCH_CONSTRAINT}.

<br />

|                      Parameters                      ||
|---------|---------------------------------------------|
| `width` | `int`: the maximum width of the view <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### constrainMinHeight

```
public ConstraintProperties constrainMinHeight (int height)
```

Sets the minimum height of the view. It is a dimension, It is only applicable if height is #MATCH_CONSTRAINT}.

<br />

|                       Parameters                       ||
|----------|----------------------------------------------|
| `height` | `int`: the minimum height of the view <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### constrainMinWidth

```
public ConstraintProperties constrainMinWidth (int width)
```

Sets the minimum width of the view. It is a dimension, It is only applicable if height is #MATCH_CONSTRAINT}.

<br />

|                      Parameters                      ||
|---------|---------------------------------------------|
| `width` | `int`: the minimum width of the view <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### constrainWidth

```
public ConstraintProperties constrainWidth (int width)
```

Sets the width of the view.

<br />

|                  Parameters                  ||
|---------|-------------------------------------|
| `width` | `int`: the width of the view <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### dimensionRatio

```
public ConstraintProperties dimensionRatio (String ratio)
```

Constrains the views aspect ratio. For Example a HD screen is 16 by 9 = 16/(float)9 = 1.777f.

<br />

|                                 Parameters                                  ||
|---------|--------------------------------------------------------------------|
| `ratio` | `String`: The ratio of the width to height (width / height) <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### elevation

```
public ConstraintProperties elevation (float elevation)
```

Set the elevation of a view.

<br />

|                 Parameters                 ||
|-------------|-------------------------------|
| `elevation` | `float`: the elevation <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### goneMargin

```
public ConstraintProperties goneMargin (int anchor, 
                int value)
```

Sets the gone margin.

<br />

|                        Parameters                        ||
|----------|------------------------------------------------|
| `anchor` | `int`: The side to adjust the margin on <br /> |
| `value`  | `int`: The new value for the margin <br />     |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### horizontalBias

```
public ConstraintProperties horizontalBias (float bias)
```

Adjust the horizontal bias of the view (used with views constrained on left and right).

<br />

|                        Parameters                         ||
|--------|---------------------------------------------------|
| `bias` | `float`: the new bias 0.5 is in the middle <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### horizontalChainStyle

```
public ConstraintProperties horizontalChainStyle (int chainStyle)
```

How the elements of the horizontal chain will be positioned. If the dimension behaviour is set to MATCH_CONSTRAINT. The possible values are:

<br />

- CHAIN_SPREAD -- the elements will be spread out
- CHAIN_SPREAD_INSIDE -- similar, but the endpoints of the chain will not be spread out
- CHAIN_PACKED -- 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 />

|                                        Parameters                                         ||
|--------------|-----------------------------------------------------------------------------|
| `chainStyle` | `int`: the weight that we can use to distribute the horizontal space <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### horizontalWeight

```
public ConstraintProperties horizontalWeight (float weight)
```

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

|                                       Parameters                                        ||
|----------|-------------------------------------------------------------------------------|
| `weight` | `float`: the weight that we can use to distribute the horizontal space <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### margin

```
public ConstraintProperties margin (int anchor, 
                int value)
```

Sets the margin.

<br />

|                        Parameters                        ||
|----------|------------------------------------------------|
| `anchor` | `int`: The side to adjust the margin on <br /> |
| `value`  | `int`: The new value for the margin <br />     |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### removeConstraints

```
public ConstraintProperties removeConstraints (int anchor)
```

Remove a constraint from this view.

<br />

|                          Parameters                          ||
|----------|----------------------------------------------------|
| `anchor` | `int`: the Anchor to remove constraint from <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### removeFromHorizontalChain

```
public ConstraintProperties removeFromHorizontalChain ()
```

Removes a view from a vertical chain. This assumes the view is connected to a vertical chain. Its behaviour is undefined if not part of a vertical chain.

<br />

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### removeFromVerticalChain

```
public ConstraintProperties removeFromVerticalChain ()
```

Removes a view from a vertical chain. This assumes the view is connected to a vertical chain. Its behaviour is undefined if not part of a vertical chain.

<br />

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### rotation

```
public ConstraintProperties rotation (float rotation)
```

Adjust the post-layout rotation about the Z axis of a view.

<br />

|                        Parameters                         ||
|------------|-----------------------------------------------|
| `rotation` | `float`: the rotation about the Z axis <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### rotationX

```
public ConstraintProperties rotationX (float rotationX)
```

Adjust the post-layout rotation about the X axis of a view.

<br />

|                         Parameters                         ||
|-------------|-----------------------------------------------|
| `rotationX` | `float`: the rotation about the X axis <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### rotationY

```
public ConstraintProperties rotationY (float rotationY)
```

Adjust the post-layout rotation about the Y axis of a view.

<br />

|                         Parameters                         ||
|-------------|-----------------------------------------------|
| `rotationY` | `float`: the rotation about the Y axis <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### scaleX

```
public ConstraintProperties scaleX (float scaleX)
```

Adjust the post-layout scale in X of a view.

<br />

|                Parameters                ||
|----------|--------------------------------|
| `scaleX` | `float`: the scale in X <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### scaleY

```
public ConstraintProperties scaleY (float scaleY)
```

Adjust the post-layout scale in Y of a view.

<br />

|                Parameters                ||
|----------|--------------------------------|
| `scaleY` | `float`: the scale in Y <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### transformPivot

```
public ConstraintProperties transformPivot (float transformPivotX, 
                float transformPivotY)
```

Set X and Y location of the pivot point around which the view will rotate and scale.

<br />

|                            Parameters                             ||
|-------------------|------------------------------------------------|
| `transformPivotX` | `float`: X location of the pivot point. <br /> |
| `transformPivotY` | `float`: Y location of the pivot point. <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### transformPivotX

```
public ConstraintProperties transformPivotX (float transformPivotX)
```

Set X location of the pivot point around which the view will rotate and scale.

<br />

|                            Parameters                             ||
|-------------------|------------------------------------------------|
| `transformPivotX` | `float`: X location of the pivot point. <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### transformPivotY

```
public ConstraintProperties transformPivotY (float transformPivotY)
```

Set Y location of the pivot point around which the view will rotate and scale.

<br />

|                            Parameters                             ||
|-------------------|------------------------------------------------|
| `transformPivotY` | `float`: Y location of the pivot point. <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### translation

```
public ConstraintProperties translation (float translationX, 
                float translationY)
```

Adjust the post-layout X and Y translation of a view.

<br />

|                      Parameters                      ||
|----------------|--------------------------------------|
| `translationX` | `float`: the translation in X <br /> |
| `translationY` | `float`: the translation in Y <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### translationX

```
public ConstraintProperties translationX (float translationX)
```

Adjust the post-layout X translation of a view.

<br />

|                      Parameters                      ||
|----------------|--------------------------------------|
| `translationX` | `float`: the translation in X <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### translationY

```
public ConstraintProperties translationY (float translationY)
```

Adjust the post-layout Y translation of a view.

<br />

|                      Parameters                      ||
|----------------|--------------------------------------|
| `translationY` | `float`: the translation in Y <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### translationZ

```
public ConstraintProperties translationZ (float translationZ)
```

Adjust the post-layout translation in Z of a view. This is the preferred way to adjust the shadow.

<br />

|                    Parameters                    ||
|----------------|----------------------------------|
| `translationZ` | `float`: the translationZ <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### verticalBias

```
public ConstraintProperties verticalBias (float bias)
```

Adjust the vertical bias of the view (used with views constrained on left and right).

<br />

|                        Parameters                         ||
|--------|---------------------------------------------------|
| `bias` | `float`: the new bias 0.5 is in the middle <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### verticalChainStyle

```
public ConstraintProperties verticalChainStyle (int chainStyle)
```

How the elements of the vertical chain will be positioned. in a chain, if the dimension behaviour is set to MATCH_CONSTRAINT

<br />

- CHAIN_SPREAD -- the elements will be spread out
- CHAIN_SPREAD_INSIDE -- similar, but the endpoints of the chain will not be spread out
- CHAIN_PACKED -- 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 />

|                                        Parameters                                         ||
|--------------|-----------------------------------------------------------------------------|
| `chainStyle` | `int`: the weight that we can use to distribute the horizontal space <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### verticalWeight

```
public ConstraintProperties verticalWeight (float weight)
```

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

|                                      Parameters                                       ||
|----------|-----------------------------------------------------------------------------|
| `weight` | `float`: the weight that we can use to distribute the vertical space <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |

### visibility

```
public ConstraintProperties visibility (int visibility)
```

Adjust the visibility of a view.

<br />

|                                      Parameters                                      ||
|--------------|------------------------------------------------------------------------|
| `visibility` | `int`: the visibility (View.VISIBLE, View.INVISIBLE, View.GONE) <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------|-------------|
| [ConstraintProperties](https://developer.android.com/reference/android/support/constraint/ConstraintProperties) | this <br /> |