Tuesday, October 27, 2020

ConstraintLayout 2.0.3

ConstraintLayout 2.0.3 is now available on the google maven repository:

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