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
Examples are available on https://github.com/androidx/constraintlayout/tree/main/projects/CarouselExperiments
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