ConstraintLayout 2.0.0 rc1
Wednesday, July 29, 2020
We are happy to announce the release candidate of ConstraintLayout 2.0. As this might be the final release before stable, we encourage people to try it and report any issues with their projects!
ConstraintLayout 2.0 adds a long list of capabilities to v1, from better runtime API to build up layouts to the introduction of new layout mechanisms such as Flow, or additional helpers like Layer.
Most notably though, this release introduces MotionLayout, an extremely powerful subclass of ConstraintLayout that you can use to easily 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.
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-rc1'
}
or if using the android.support packages:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.0-rc1'
}
Documentation is available on https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout and https://developer.android.com/reference/androidx/constraintlayout/motion/widget/MotionLayout
Examples are available on https://github.com/android/views-widgets-samples/tree/master/ConstraintLayoutExamples
ConstraintLayout 2.0 adds a long list of capabilities to v1, from better runtime API to build up layouts to the introduction of new layout mechanisms such as Flow, or additional helpers like Layer.
Most notably though, this release introduces MotionLayout, an extremely powerful subclass of ConstraintLayout that you can use to easily 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.
It’s available from the google maven repository:
dependencies {implementation 'androidx.constraintlayout:constraintlayout:2.0.0-rc1'
}
or if using the android.support packages:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.0-rc1'
}
Examples are available on https://github.com/android/views-widgets-samples/tree/master/ConstraintLayoutExamples