Friday, June 12, 2020

ConstraintLayout 2.0.0 beta 7

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

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




or if using the android.support packages:

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


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 7. Notable fixes are:

  • Nested scroll view issues in MotionLayout
  • Transition listener issues with MotionLayout
  • Memory leak in MotionLayout
  • RecyclerView performances
  • Group visibility
  • Padding issues



[2.0.0-beta4] First tap lost in a scrolling view contained in a MotionLayout146413738
ConstraintLayout should with wrap_content match the heighest child156556215
constraintSet.applyTo(...) when called two or more times in a row, sometimes doesn't work.156556217
ConstraintLayout show different preview since 2.0.0-beta5156582652
[2.0.0-beta6] onTransitionCompleted called multiple times and with an id of -1157003182
ConstraintLayout 2.0 incorrectly applies paddingEnd to RHS of views in RTL157072539
[2.0.0-beta6] MotionLayout + RecyclerView binding all items before recycling all but visible again157075835
Memory leaks when scrolling using MotionLayout157370588
Flinging through ConstaintLayouts (beta-6) in RecyclerView causes loop157498393
match_constraint can sometimes be collapsed incorrectly157498451
MotionLayout leaks nested scrollable view in its mScrollTarget field158494145
onTransitionCompleted is not always called149423772
RTL issue paddingStart/End working like left/right156448748
group visibility doesn't apply correctly in 2.0 beta 6157599997
wrap_content on ConstraintLayout itself does not behave as it should with wrapped TextView111110537
MotionLayout: OnSwipe doesn't work after transitioning to a third state135130730
[MotionLayout 2.0.0-beta2] TransitionListener triggers callbacks incorrectly135627413
Motionlayout crash if count of custom attributes in constraint more than count of constraint sets136362587
MotionLayout throwing ArrayIndexOutOfBoundsException when adding more than three CustomAttribute elements144151823
[MotionLayout] Add a `addTransitionListener` method rather than a setter144714753
Constraint Layout without any children views with height wrap_content takes full parent height146698785
ImageFilterButton NPE GLES20Canvas.clipPath()147871162
[Motion Layout] Jiggling if we fling nested recycler and than move content into opposite direction148483381
[2.0.0-beta4] Motion layout jumps to the end when Recycler view is a touch region150268542
RecyclerView#onScrollStateChanged delayed when child of MotionLayout150881510
CL 2.0.0 Beta 4 rendering issue151317170
Nested ConstraintLayout doesn't show correctly with data binding151648853
ImageFilterView is not showing background when roundPercent > 0 is set on API < 21153243019
beta 6 : wrap content + align baselines156660905
[MotionLayout] strange behavior in auto transition157351958
[2.0.0-beta6] no pass through of `baseline_toBaselineOf` when View is GONE157401856
maxHeight + padding157448494
MotionLayout with RecyclerView has messed up click listeners157501464
MotionLayout ImageFilterView roundPercentage doesn't work after you set to 0.0147094777
addToVerticalChain: Incorrect connections when adding to the top of a chain.149173288