We are happy to announce the release of ConstraintLayout 2.0 beta 4.
It’s available from the google maven repository:
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
}
or if using the android.support packages:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta4'
}
Documentation is available on https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout
Examples are available on https://github.com/googlesamples/android-ConstraintLayoutExamples
MotionLayout
- new attributes in Transition:
- layoutDuringTransition : let you configure how MotionLayout should react to children's requestLayouts calls during a transition. Possible values are {ignoreRequest, honorRequest}
- pathMotionArc : the path taken by elements moving will use an arc. Possible values are {startVertical | startHorizontal | flip | none }
- A default transition is now possible to define, simply by omitting the start and end ConstraintSets. That default transition will be used if no other existing transition can be found to match the current start/end states.
Bugfixes
We fixed several issues in beta 4 -- upgrade from previous versions is highly encouraged.
Incorrect measuring dimensionRatio | 117087368 |
[ConstraintLayout 2.0.0-beta2] Regression in scrolling RecyclerView into collapsing header | 135430899 |
Regression regarding minHeight property | 135828272 |
rotation issue | 136131642 |
MotionLayout breaks if there are no Transitions defined | 137310456 |
Incorrect rendering of views constrained towards a Barrier | 143273709 |
Bug: ConstraintLayout barrier not shown on the IDE | 143411144 |
[ConstraintLayout 2.0.0-beta3] Scrolling RecyclerView into collapsing header starts transition before reaching the top | 143595002 |
Helpers aren't showing in Android Studio | 144702154 |
ConstraintLayout - View Disappearing / Wrong Behaviour on a Transition | 110314365 |
2.0.0 Alpha 4 not respecting margins. | 130060979 |
When onTouchUp is set to decelerate the transition snaps to the end | 132325328 |
Setting layout_constrainedHeight leads to incorrect view's width. | 138733070 |
Static width & height ratio constraint results in wrong dimensions with 2.0.0-beta3 | 143967392 |
dimension percent with only one constraint collapse when = 1 | 144701789 |
Broken layout when the view is gone with spread_inside chain style | 145768215 |
3 issues found in alpha5 | 131613288 |
[MotionLayout] onClick and onSwipe on the same view combination doesn't work | 136600128 |
Disable Transition | 138814831 |
NoSuchMethodException (setFabBackgroundTint, setFabTint) in MotionLayout | 139535302 |
Disabling transition not working | 143026544 |
Views get incorrectly wrapped in 2.0.0-beta3 | 143373429 |
[MotionLayout] Add API to temporarily disable touch event handling | 144150451 |
MotionLayout onClick transition being override by swipe transition state | 144943459 |
Flow Design View Broken in when using ConstraintLayout 2.0.0-beta3 with AS 4.0-alpha04 | 145511664 |