We are happy to announce the release of ConstraintLayout 2.0 beta 8.
It’s available from the google maven repository:
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8'
}
or if using the android.support packages:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta8'
}
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 8. Notable fixes are:
- Placeholder behavior
- Layer visibility
- Flow, Barrier fixes
- TransitionListener fixes
spread_inside chain incorrect position | 160721889 |
Using transformPivotX in MotionScene causes NumberFormatException | 160100638 |
group visibility doesn't apply correctly in 2.0 beta 6 | 157599997 |
PlaceHolder wrap-content issue on 2.0.0-beta3 version | 145317510 |
PlaceHolder not working | 143233549 |
ResourcesImpl getIdentifier attempts to parse identifier name as integer for no apparent reason. | 155970557 |
Compile time check for a group referencing itself | 158112990 |
ArrayIndexOutOfBoundsException with Constraint Flow on RecylcerView items | 156660902 |
First motions goes on false position | 146620824 |
transitionToStart() not as expected when transition change very quick | 154069247 |
MotionLayout still leaks nested scrollable view in its mScrollTarget field | 158941183 |
[MotionLayout] addTransitionListener throws NullPointerException | 159104189 |
Incorrect positioning of Barriers in 2.0.0-beta5 | 159540431 |
Bug: including unused barrier breaks preview + on-device layout | 157867784 |
Issue with ConstraintLayout barriers when using horizontal bias in 2.0.0-beta6 | 158585672 |
<OnClick> doesn't have the same behavior as MotionLayout.transitionToState(int) | 146010214 |
[2.0.0-beta4] MotionLayout calling transitionToEnd() in lifecycle methods bug | 151242173 |
[MotionLayout] No widget for XXXX exception is logged | 138261133 |
MotionLayout state reset during fragment transaction | 137174583 |
MotionLayout internal state is corrupted after using setProgress() too early in view lifecycle | 148330097 |
MotionLayout can not transition when naviagte back | 159582390 |
Weird status after coming back to MotionLayout | 137173765 |
[MotionLayout] OnSwipe doesn't work if finger moved slowly | 157424691 |
[MotionLayout] onTransitionCompleted doesn't work on api level 17 | 156853974 |