Thursday, November 19, 2020

ConstraintLayout 2.1.0 alpha 1

We are happy to announce the release of ConstraintLayout 2.1.0 alpha 1, with many new features in MotionLayout :)

dependencies {
  implementation 'androidx.constraintlayout:constraintlayout:2.1.0-alpha1'
}

2.1.0 alpha 1 Features




Highlights of this release include:
  • Carousel - a motion helper to build custom carousel views
  • Scalability - MotionScenes can be more compact and support includes
  • Rotation support - A collection of features to support rotation (input and output)
  • ViewTransitions - a single view transition to simplify state management
  • Github - ongoing development happens on github: https://github.com/androidx/constraintlayout

More details and documentation can be found at: https://github.com/androidx/constraintlayout/wiki/MotionLayout

Changes


No API was changed from 2.0, existing code should behave the same.

Note: MotionLayout 2.1 features are not yet compatible with MotionEditor in Android Studio.

As of 2.1, we will no longer release com.android.support.constraint versions