Platform
Android Studio
Google Play
Jetpack
Docs
Blog
Download
What's New
User Guide
Preview
Home
Platform
Android Studio
Download
What's New
User Guide
Preview
Google Play
Docs
Blog
Download a Preview
Install Alongside Stable
New Features
Release Updates
Updates archive
►
2024
2024
(83)
►
November
November
(4)
►
October
October
(8)
►
September
September
(8)
►
August
August
(9)
►
July
July
(6)
►
June
June
(7)
►
May
May
(9)
►
April
April
(9)
►
March
March
(6)
►
February
February
(8)
►
January
January
(9)
►
2023
2023
(76)
►
December
December
(4)
►
November
November
(9)
►
October
October
(7)
►
September
September
(8)
►
August
August
(3)
►
July
July
(4)
►
June
June
(6)
►
May
May
(10)
►
April
April
(4)
►
March
March
(7)
►
February
February
(9)
►
January
January
(5)
►
2022
2022
(59)
►
December
December
(3)
►
November
November
(5)
►
October
October
(8)
►
September
September
(4)
►
August
August
(4)
►
July
July
(2)
►
June
June
(7)
►
May
May
(6)
►
April
April
(5)
►
March
March
(6)
►
February
February
(5)
►
January
January
(4)
►
2021
2021
(54)
►
December
December
(3)
►
November
November
(2)
►
October
October
(6)
►
September
September
(4)
►
August
August
(5)
►
July
July
(8)
►
June
June
(4)
►
May
May
(5)
►
April
April
(1)
►
March
March
(7)
►
February
February
(4)
►
January
January
(5)
▼
2020
2020
(107)
▼
December
December
(7)
ConstraintLayout 2.1.0 alpha 2
Android Studio Arctic Fox Canary 3 available
Android Studio 4.2 Beta 2 available
Android Emulator Apple Silicon Preview
Android Studio Arctic Fox Canary 2 available
Android Studio 4.2 Beta 1 available
Android Studio Arctic Fox Canary 1 available
►
November
November
(3)
►
October
October
(8)
►
September
September
(6)
►
August
August
(11)
►
July
July
(14)
►
June
June
(10)
►
May
May
(12)
►
April
April
(11)
►
March
March
(11)
►
February
February
(6)
►
January
January
(8)
►
2019
2019
(145)
►
December
December
(16)
►
November
November
(12)
►
October
October
(10)
►
September
September
(13)
►
August
August
(12)
►
July
July
(6)
►
June
June
(9)
►
May
May
(18)
►
April
April
(14)
►
March
March
(12)
►
February
February
(10)
►
January
January
(13)
►
2018
2018
(128)
►
December
December
(13)
►
November
November
(12)
►
October
October
(10)
►
September
September
(10)
►
August
August
(16)
►
July
July
(10)
►
June
June
(13)
►
May
May
(9)
►
April
April
(11)
►
March
March
(12)
►
February
February
(9)
►
January
January
(3)
►
2017
2017
(48)
►
December
December
(3)
►
November
November
(2)
►
October
October
(8)
►
September
September
(3)
►
August
August
(4)
►
July
July
(3)
►
June
June
(3)
►
May
May
(4)
►
April
April
(5)
►
March
March
(5)
►
February
February
(6)
►
January
January
(2)
►
2016
2016
(5)
►
December
December
(3)
►
November
November
(2)
Subscribe to updates
Posts
Atom
Posts
Android Developers
Android Studio
Preview
Release Updates
ConstraintLayout 2.1.0 alpha 2
Thursday, December 17, 2020
We are happy to announce the release of ConstraintLayout 2.1.0 alpha 2, with many new features :)
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.1.0-alpha2'
}
What's new in 2.1.0 alpha 2
More information about the new features in 2.1.0 can be found on the
wiki
, the source code is available on
https://github.com/androidx/constraintlayout
ConstraintLayout
android:layout_width and android:layout_height are now optional, with wrap_content as default behavior
new layout_constraintWidth and layout_constraintHeight attributes for expressing dimension constraints
supports negative margins for constraints
supports baseline to top and baseline to bottom constraints
supports baseline margin constraints
SharedValues allow to inject external values into ConstraintLayout
MotionLayout
Support for overshoot interpolators (anticipate, overshoot)
Enhanced MotionHelper support
Add animated update of ConstraintSet to MotionLayout updateStateAnimate(id,cset,duration);
Shared value based ViewTransition
scheduleTransitonTo allow you to que a transition to run at the completion of the current transition.
Helpers
Carousel now supports an infinite (wrap-around) mode
ReactiveGuide : A guideline that position itself automatically when a SharedValue changes
MotionEffect : inject Keyframes to referenced views moving in a given direction
MotionLabel - A View for animating single line text
Changes
ConstraintLayout.LayoutParams
now inherits directly from
ViewGroup.LayoutParams
, not
ViewGroup.MarginLayoutParams
.
Fixes
vertical ratio incorrectly resolved
percent dimension with max dimensions