ConstraintLayout 2.0.2 is now available on the google maven repository:
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
}
or if using the android.support packages:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.2'
}
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 improves performances as well as fix a few issues. It is recommended to update to this version.
- Handling of view GONE visibility in ConstraintLayout was incorrect in some situations
- Handling of packed chains in ConstraintLayout was incorrect in some situations
- Fixed inflation exception on API 15 for the Flow virtual layout helper
- limitsBoundsTo was broken in MotionLayout
- jump to end was broken in MotionLayout in some situations (chaining transitions)