Thursday, May 7, 2020

ConstraintLayout 2.0.0 beta 5

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

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




or if using the android.support packages:

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


Documentation is available on https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout

Examples are available on https://github.com/android/views-widgets-samples/tree/master/ConstraintLayoutExamples


Bugfixes


We fixed several issues in beta 5 -- upgrade from previous versions is encouraged, specifically when using MotionLayout.


[2.0.0-beta4] First tap lost in a scrolling view contained in a MotionLayout146413738
ConstraintLayout Group - Changing visibility when using INVISIBLE doesn't work correctly130524019
[MotionLayout] - NestedScrollView + RecyclerView + variable size header on click138035155
[MotionLayout] does not expand to wrap content inside RecyclerView item138312805
MotionLayout drag doesn't work after fling in RecyclerView141319444
Flow : Set only vertical style, but applied both vertical and horizontal style141809028
CustomView as part of a CollapsibleToolbar (MotionLayout) extends beyond it's bounds when scrolling up143971662
Flow doesn't handle gaps correctly with wrapMode=chain144298723
MotionLayout packed horizontal chain style does not work for RTL locales144301446
Incorrect behavior with GONE views used in Flow helper144388675
Percentage Constraint not working properly in Constraint Flow Layout144667391
Constraint Flow layout rows are getting overlapped144668321
Problem with chained widgets144987885
deriveConstraintsFrom doesn't seem to derive custom attributes145977578
[2.0.0-beta04] layout_constraintVertical_bias is 0.5 like 1146591537
ConstraintLayout 1.1 bug or undocumented change77991323
MotionLayout: View shakes after list scroll126123628
Changing visibility not redrawing layout127623474
NPE on tap when scene not assigned137286955
MotionLayout set Transition Listener139481711
layout_constraintDimensionRatio stays applied after a move to another ConstraintSet in MotionLayout140263105
touchRegionId doesn't work properly for Motion Layout142498322
[ConstraintLayout 2.0.0-beta-2] MotionLayout: Calling transitionToState too quickly results in MotionLayout getting into a bad state142698005
Nested MotionLayout gets stuck on scroll even with motion:onTouchUp="autoComplete"143501796
MotionLayout visibilityMode="ignore" doesn't work with deriveConstraintsFrom144795175
Padding start/end/vertical/horizontal not working in Constraint Layout Flow146265835
setTransition(id) method request146537011
The Layout deforms by itself.146794818
CL 2.0 beta 4 chain biases and gone views146920079
Flow elevation problem148483377