Wednesday, May 13, 2020

ConstraintLayout 2.0.0 beta 6

We are happy to announce the release of ConstraintLayout 2.0 beta 6. 

It’s available from the google maven repository:
dependencies {
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta6'
}




or if using the android.support packages:

dependencies {
    implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta6'
}


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

Bugfixes


Here is the list of issues fixed in beta 6. Notable fixes are group visibility handling and derived constraints issues in MotionLayout.

MotionLayout constraintsets don't correctly read match width/height defaults156539907
ImageFilterView & ImageFilterButton fail to set round156420202
Views in ConstraintLayout not honoring "match constraints" (0dp) when used with ViewPager2147202197
NoSuchMethodError: getLayoutDirection()147871163
[MotionLayout] ANR156047801
Group visibility + single view visibility73186245
Group Visibility Does Not Support View.INVISIBLE79307158
ConstraintLayout sometimes ignores visibility changes154533618
ConstraintLayout Group visibility not updated117485026
ConstraintLayout Group - Changing visibility when using INVISIBLE doesn't work correctly130524019
ConstraitLayout Group143163408