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
(89)
►
Dezember
Dezember
(6)
►
November
November
(4)
►
Oktober
Oktober
(8)
►
September
September
(8)
►
August
August
(9)
►
Juli
Juli
(6)
►
Juni
Juni
(7)
►
Mai
Mai
(9)
►
April
April
(9)
►
März
März
(6)
►
Februar
Februar
(8)
►
Januar
Januar
(9)
►
2023
2023
(76)
►
Dezember
Dezember
(4)
►
November
November
(9)
►
Oktober
Oktober
(7)
►
September
September
(8)
►
August
August
(3)
►
Juli
Juli
(4)
►
Juni
Juni
(6)
►
Mai
Mai
(10)
►
April
April
(4)
►
März
März
(7)
►
Februar
Februar
(9)
►
Januar
Januar
(5)
►
2022
2022
(59)
►
Dezember
Dezember
(3)
►
November
November
(5)
►
Oktober
Oktober
(8)
►
September
September
(4)
►
August
August
(4)
►
Juli
Juli
(2)
►
Juni
Juni
(7)
►
Mai
Mai
(6)
►
April
April
(5)
►
März
März
(6)
►
Februar
Februar
(5)
►
Januar
Januar
(4)
►
2021
2021
(54)
►
Dezember
Dezember
(3)
►
November
November
(2)
►
Oktober
Oktober
(6)
►
September
September
(4)
►
August
August
(5)
►
Juli
Juli
(8)
►
Juni
Juni
(4)
►
Mai
Mai
(5)
►
April
April
(1)
►
März
März
(7)
►
Februar
Februar
(4)
►
Januar
Januar
(5)
▼
2020
2020
(107)
►
Dezember
Dezember
(7)
►
November
November
(3)
►
Oktober
Oktober
(8)
►
September
September
(6)
►
August
August
(11)
▼
Juli
Juli
(14)
Android Studio 4.2 Canary 7 available
ConstraintLayout 2.0.0 rc1
Android Studio 4.2 Canary 6 available
Emulator 30.0.23 Canary
Android Studio 4.1 Beta 5 available
Android Studio 4.2 Canary 5 available
Emulator 30.0.22 Canary
Android Studio 4.1 Beta 4 available
Android Studio 4.0.1 available
Emulator 30.0.21 Canary
Android Studio 4.2 Canary 4 available
ConstraintLayout 2.0.0 beta 8
Android Studio 4.1 Beta 3 available
Emulator 30.0.20 Canary
►
Juni
Juni
(10)
►
Mai
Mai
(12)
►
April
April
(11)
►
März
März
(11)
►
Februar
Februar
(6)
►
Januar
Januar
(8)
►
2019
2019
(145)
►
Dezember
Dezember
(16)
►
November
November
(12)
►
Oktober
Oktober
(10)
►
September
September
(13)
►
August
August
(12)
►
Juli
Juli
(6)
►
Juni
Juni
(9)
►
Mai
Mai
(18)
►
April
April
(14)
►
März
März
(12)
►
Februar
Februar
(10)
►
Januar
Januar
(13)
►
2018
2018
(128)
►
Dezember
Dezember
(13)
►
November
November
(12)
►
Oktober
Oktober
(10)
►
September
September
(10)
►
August
August
(16)
►
Juli
Juli
(10)
►
Juni
Juni
(13)
►
Mai
Mai
(9)
►
April
April
(11)
►
März
März
(12)
►
Februar
Februar
(9)
►
Januar
Januar
(3)
►
2017
2017
(48)
►
Dezember
Dezember
(3)
►
November
November
(2)
►
Oktober
Oktober
(8)
►
September
September
(3)
►
August
August
(4)
►
Juli
Juli
(3)
►
Juni
Juni
(3)
►
Mai
Mai
(4)
►
April
April
(5)
►
März
März
(5)
►
Februar
Februar
(6)
►
Januar
Januar
(2)
►
2016
2016
(5)
►
Dezember
Dezember
(3)
►
November
November
(2)
Subscribe to updates
Posts
Atom
Posts
Android Developers
Android Studio
Preview
Release Updates
ConstraintLayout 2.0.0 rc1
Mittwoch, 29. Juli 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.
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'
}
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
Bugfixes
Here is the list of issues fixed in rc1. Notable fixes are:
Flow fixes
RecyclerView fixes (we recommend to update to recyclerview 1.2.0 alpha 5 or later)
MotionLayout TransitionListener fixes
MotionLayout memory leak fix
layout_constrainedWidth doesn't not work in Flow's children
157681357
NPE 's in Flow
162261507
layout_constraintDimensionRatio stays applied after a move to another ConstraintSet in MotionLayout
140263105
MotionLayout drag doesn't work after fling in RecyclerView
141319444
[ConstraintLayout 2.0.0-beta3] NPE when deriveConstraintsFrom is invalid.
143549617
apply layout_height="wrap_content" app:layout_constrainedHeight="true" this view height is full of constraint size when onCreat . And Then swich the view GONE/VISIBLE , the size change to the expected result
149427470
Flow height is bigger than it should be when its height is `wrap_content`
158285666
NullPointerException
161061411
Penultimate ImageView shifted when adding more rows
161063291
single element in the chain don't have bias applied
161741571
MotionLayout : adding views to Flow Helper
150940641
Resize in textview when I scroll in customized MotionLayout
155215198
MotionLayout firing callback endlessly with GlobalLayout
158068868
[Feature-Request] Addition of MotionScene.Transistion::getId.
160395303
Incorrect barrier and referenced view placement in 2.0.0-beta8
161156064
layout_width="wrap_content" on the parent does not work correctly when a child View has layout_constraintDimensionRatio and layout_constraintHeight_percent in 2.0.0-beta8
161826272
possible MotionLayout memory leak
161926837
Annotate ConstraintLayout constructor context param as not nullable
161926849
Android resource compilation failed after implementation 'constraint-layout:2.0.0-beta8'
162011618