We just released the second alpha release of ConstraintLayout 2.0. It’s available from the google maven repository:

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

or the androidX variant:

dependencies {
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
}

Beyond fixes and new features in MotionLayout (Arc mode, TimeCycle keyframes, color drawable interpolation) we added a new optimization mode in ConstraintLayout that you can trigger by using the app:layout_optimizationLevel=”standard|groups”.  Feedback encouraged!


Fixes and additions:

  • Minimum SDK is now 14
  • New “groups” optimizations in ConstraintLayout
  • ConstraintSet fix (issue when cloning a barrier)
  • MotionLayout bugfixes (transition listener and others)
  • Adding support for color drawable interpolation in MotionScene (custom attribute)
  • Adding Arc motion mode
  • Adding OnSwipe support with no target
  • Adding TimeCycle keyframes
  • Changing easing curve to be applied on start
  • Rename motion:type attribute in keyframes to motion:keyPositionType to prevent clash with the navigation library