We are happy to announce the release of ConstraintLayout 2.0 beta 3.
It’s available from the google maven repository:
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3'
}
or if using the android.support packages:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta3'
}
Documentation is available on https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout
Examples are available on https://github.com/googlesamples/android-ConstraintLayoutExamples
MotionLayout
This release is adding support for the MotionEditor in Android Studio.
Bugfixes
Several issues where also fixed in beta 3:
ConstraintLayout version: 2.0.0-beta2 xml maxWidth attribute | 137635197 |
ConstraintLayout:2.0.0-alpha4 MotionLayout - The views are not animated if the interpolator is AnticipateInterpolator | 131280484 |
ConstraintHelper#getViews() return empty list | 135968241 |
TextView width bug with CL 2.0 beta2 | 135547191 |
View not centered correctly with margin | 142755253 |
Flow helper chain not respecting horizontal bias and style while RTL is enabled | 137791337 |
"Invalid ID" error when constraining views with dynamic IDs | 133782949 |
ConstraintSet inflation references "mId" attribute | 131579783 |
MotionLayout crash when there is no layoutDescription or applyMotionScene=false | 136103102 |
[ConstraintLayout 2.0.0-beta1] NPE when calling MotionLayout.transitionToState | 132473209 |
Constraint layout using non-explicit attr definitions in 2.0.0-alpha4 | 136103084 |
ConstraintSet does not copy some attributes from XML | 138327339 |