dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.0-alpha2'
}
or the androidX variant:
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
}
Fixes and additions:
- Minimum SDK is now 14
- New “groups” optimizations in ConstraintLayout
- ConstraintSet fix (issue when cloning a barrier)
- MotionLayout bugfixes (transition listener and others)
- Adding support for color drawable interpolation in MotionScene (custom attribute)
- Adding Arc motion mode
- Adding OnSwipe support with no target
- Adding TimeCycle keyframes
- Changing easing curve to be applied on start
- Rename motion:type attribute in keyframes to motion:keyPositionType to prevent clash with the navigation library
Documentation is available on https://developer.android.com/reference/android/support/constraint/ConstraintLayout.html