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/MotionLayoutExamples 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 defaults | 156539907 |
ImageFilterView & ImageFilterButton fail to set round | 156420202 |
Views in ConstraintLayout not honoring "match constraints" (0dp) when used with ViewPager2 | 147202197 |
NoSuchMethodError: getLayoutDirection() | 147871163 |
[MotionLayout] ANR | 156047801 |
Group visibility + single view visibility | 73186245 |
Group Visibility Does Not Support View.INVISIBLE | 79307158 |
ConstraintLayout sometimes ignores visibility changes | 154533618 |
ConstraintLayout Group visibility not updated | 117485026 |
ConstraintLayout Group - Changing visibility when using INVISIBLE doesn't work correctly | 130524019 |
ConstraitLayout Group | 143163408 |