Release updates archive

dependencies {
  implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
}

or if using the android.support packages:

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

Documentation & Examples





Bugfixes

This releases fixes a NPE that may happen when removing a child view of ConstraintLayout at runtime. It is recommended to update to this version.

List of issues closed with this release:

NPE in ConstraintLayout.Measurer (v2.0.3)171901411


dependencies {
  implementation 'androidx.constraintlayout:constraintlayout:2.0.3'
}

or if using the android.support packages:

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

Documentation & Examples





Bugfixes


This releases fixes a few issues. It is recommended to update to this version.
  • Windows insets handling
  • Handling of dimension ratio in some situations (regression in 2.0.2)
  • Crash with some RTL layouts (regression in 2.0.2)
List of issues closed with this release:

Can not set view visibility in InsetsListener callback without request layout169262776
ConstraintLayout 2.0.2 broke layout_constraintDimensionRatio170313444
Internal crash when solving constraints in 2.0.2170316875
Broken app:layout_constraintWidth_max="wrap" in version 2.0.2170541907
NPE on VelocityTracker when swiping view in RecyclerView170727611
In 2.0.2, children with layout_width="0dp", and managed by a vertical Flow, do not match the Flow's width170884549
Elements not shown when using barrier and ConstraintLayout height is set to wrap_content171458571
View height issue when using layout_constrainedHeight170189141
MotionLayout crashes in onAttachedToWindow() if applyMotionScene="false" or if no layout description specified171053913
layout_constraintHorizontal_bias RTL171334510

dependencies {
  implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
}


or if using the android.support packages:


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

Documentation & Examples


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

Source is available on https://github.com/AndroidX/constraintlayout

Bugfixes

This releases improves performances as well as fix a few issues. It is recommended to update to this version.
  • Handling of view GONE visibility in ConstraintLayout was incorrect in some situations
  • Handling of packed chains in ConstraintLayout was incorrect in some situations
  • Fixed inflation exception on API 15 for the Flow virtual layout helper
  • limitsBoundsTo was broken in MotionLayout
  • jump to end was broken in MotionLayout in some situations (chaining transitions)
Flow inflation exception on API 15165312258
java.lang.ClassCastException: androidx.constraintlayout.solver.ArrayLinkedVariables cannot be cast to androidx.constraintlayout.solver.SolverVariableValues165964943
The attribute "flow_horizontalAlign" was defined with the wrong format168495397
Margins are not visible (gone)162917675
VerticalBias not working when another view has a constraint to the top of the original view167014942
Barrier makes constraint work incorrectly167612342
When horizontal chain style is set to packed it is not working as expected167701934
MotionLayout: Quick swipes outside of limitBoundsTo are not ignored168373996
Setting the visibility of a View to GONE causes layout to render incorrectly in 2.0.1168681861
ConstraintLayout 2.0.0/2.0.1 "gone" views is not taken into consideration the same way as in 2.0.0-rc1166486001

Sponsor
SponsoredKunjungi sekarang
Promo