Monday, December 16, 2019

ConstraintLayout 2.0.0 beta 4

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 dimensionRatio117087368
[ConstraintLayout 2.0.0-beta2] Regression in scrolling RecyclerView into collapsing header135430899
Regression regarding minHeight property135828272
rotation issue136131642
MotionLayout breaks if there are no Transitions defined137310456
Incorrect rendering of views constrained towards a Barrier143273709
Bug: ConstraintLayout barrier not shown on the IDE143411144
[ConstraintLayout 2.0.0-beta3] Scrolling RecyclerView into collapsing header starts transition before reaching the top143595002
Helpers aren't showing in Android Studio144702154
ConstraintLayout - View Disappearing / Wrong Behaviour on a Transition110314365
2.0.0 Alpha 4 not respecting margins.130060979
When onTouchUp is set to decelerate the transition snaps to the end132325328
Setting layout_constrainedHeight leads to incorrect view's width.138733070
Static width & height ratio constraint results in wrong dimensions with 2.0.0-beta3143967392
dimension percent with only one constraint collapse when = 1144701789
Broken layout when the view is gone with spread_inside chain style145768215
3 issues found in alpha5131613288
[MotionLayout] onClick and onSwipe on the same view combination doesn't work136600128
Disable Transition138814831
NoSuchMethodException (setFabBackgroundTint, setFabTint) in MotionLayout139535302
Disabling transition not working143026544
Views get incorrectly wrapped in 2.0.0-beta3143373429
[MotionLayout] Add API to temporarily disable touch event handling144150451
MotionLayout onClick transition being override by swipe transition state144943459
Flow Design View Broken in when using ConstraintLayout 2.0.0-beta3 with AS 4.0-alpha04145511664