It’s available from the google maven repository:

dependencies {

implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta1'

}

or if using the AndroidX packages:

dependencies {

implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta1'

}





Documentation is available on https://developer.android.com/reference/android/support/constraint/classes.html





New in Beta1

Flow virtual layout

bug fixes (padding behavior + wrap content behavior)

addition of addView()/removeView() on ConstraintHelper, allowing runtime addition/removal of refrenced views

MotionLayout

Enhanced Staggered API

<Transition>: staggered=”float”.

We are happy to announce the release of ConstraintLayout 2.0 beta 1. APIs are now considered stable for the remaining of the 2.0 release cycle.Examples are available on https://github.com/googlesamples/android-ConstraintLayoutExamples Previously staggered had just one attributes inIt would stagger the animation transition of all objects based on their Manhattan distance from the top left corner.You can now define in a ConstraintSet: