dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.3'
}
or if using the android.support packages:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.3'
}
Documentation & Examples
Documentation is available on https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout and https://developer.android.com/reference/androidx/constraintlayout/motion/widget/MotionLayout
Examples are available on https://github.com/android/views-widgets-samples/tree/master/ConstraintLayoutExamples
Source is available on https://github.com/AndroidX/constraintlayout
Bugfixes
This releases fixes a few issues. It is recommended to update to this version.
- Windows insets handling
- Handling of dimension ratio in some situations (regression in 2.0.2)
- Crash with some RTL layouts (regression in 2.0.2)
List of issues closed with this release: