From better runtime API to build up layouts, to the introduction of new layout mechanisms such as Flow, or additional helpers like Layer, the new features will help you build powerful and adaptable layouts. Most notably of course, this release introduces MotionLayout, an extremely powerful subclass of ConstraintLayout that you can use to create refined motion in your application.
In addition to the existing Layout Editor in Android Studio, allowing easy creation and edition of UI with ConstraintLayout, we recently added a new Motion Editor in Android Studio 4.0+, enabling you to quickly take advantage of MotionLayout in your projects.
In addition to the existing Layout Editor in Android Studio, allowing easy creation and edition of UI with ConstraintLayout, we recently added a new Motion Editor in Android Studio 4.0+, enabling you to quickly take advantage of MotionLayout in your projects.
It’s available from the google maven repository:
dependencies {implementation 'androidx.constraintlayout:constraintlayout:2.0.0'
}
or if using the android.support packages:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.0'
}
Examples are available on https://github.com/android/views-widgets-samples/tree/master/ConstraintLayoutExamples
Note
Bugfixes
Here is the list of issues fixed since the rc1. Notable fixes are:
- MotionLayout Transition delays & TransitionListener fixes
- ConstraintLayout flow & barrier fixes