Wednesday, October 23, 2019

ConstraintLayout 2.0.0 beta 3

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 attribute137635197
ConstraintLayout:2.0.0-alpha4 MotionLayout - The views are not animated if the interpolator is AnticipateInterpolator131280484
ConstraintHelper#getViews() return empty list135968241
TextView width bug with CL 2.0 beta2135547191
View not centered correctly with margin142755253
Flow helper chain not respecting horizontal bias and style while RTL is enabled137791337
"Invalid ID" error when constraining views with dynamic IDs133782949
ConstraintSet inflation references "mId" attribute131579783
MotionLayout crash when there is no layoutDescription or applyMotionScene=false136103102
[ConstraintLayout 2.0.0-beta1] NPE when calling MotionLayout.transitionToState132473209
Constraint layout using non-explicit attr definitions in 2.0.0-alpha4136103084
ConstraintSet does not copy some attributes from XML138327339