❈ ConstraintLayout 2.0.0 rc1

Programmierung androidstudio.googleblog.com

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 children157681357
NPE 's in Flow162261507
layout_constraintDimensionRatio stays applied after a move to another ConstraintSet in MotionLayout140263105
MotionLayout drag doesn't work after fling in RecyclerView141319444
[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 result149427470
Flow height is bigger than it should be when its height is `wrap_content`158285666
NullPointerException161061411
Penultimate ImageView shifted when adding more rows161063291
single element in the chain don't have bias applied161741571
MotionLayout : adding views to Flow Helper150940641
Resize in textview when I scroll in customized MotionLayout155215198
MotionLayout firing callback endlessly with GlobalLayout158068868
[Feature-Request] Addition of MotionScene.Transistion::getId.160395303
Incorrect barrier and referenced view placement in 2.0.0-beta8161156064
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-beta8161826272
possible MotionLayout memory leak161926837
Annotate ConstraintLayout constructor context param as not nullable161926849
Android resource compilation failed after implementation 'constraint-layout:2.0.0-beta8'162011618

...

Zur Startseite

Kompletten Artikel anzeigen (externe Quelle: https://androidstudio.googleblog.com/2020/07/constraintlayout-200-rc1.html)

➤ Weitere Beiträge von Team Security | IT Sicherheit

Understanding the performance benefits of using ConstraintLayout

vom 602.76 Punkte ic_school_black_18dp
Posted by Takeshi Hagikura, Developer Programs Engineer Since announcing ConstraintLayout at Google I/O last year, we've continued to improve the layout's stability and layout editor support. We've also added new features specific to ConstraintLayo

ConstraintLayout 2.0.0 beta 2

vom 505.54 Punkte ic_school_black_18dp
We are happy to announce the release of ConstraintLayout 2.0 beta 2. It’s available from the google maven repository: dependencies {    implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta2'} or if using the AndroidX packages: dependencies {    implementation 'androidx.con

ConstraintLayout 2.0.0

vom 457.44 Punkte ic_school_black_18dp
We are very happy to announce the stable release of ConstraintLayout 2.0 -- a long journey, but this version adds a very 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 addit

ConstraintLayout 2.0.0 rc1

vom 428.06 Punkte ic_school_black_18dp
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

ConstraintLayout 2.0.2

vom 408.47 Punkte ic_school_black_18dp
 ConstraintLayout 2.0.2 is now available on the google maven repository: dependencies {  implementation 'androidx.constraintlayout:constraintlayout:2.0.2'}or if using the android.support packages:dependencies {  implementation 'com.android.support.constraint:constraint-layout:2.0.2'}D

ConstraintLayout 2.0.0 beta 7

vom 388.88 Punkte ic_school_black_18dp
We are happy to announce the release of ConstraintLayout 2.0 beta 7. It’s available from the google maven repository:dependencies {    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta7'}or if using the android.support packages:dependencies {    implementation 'com.android.support.constraint:constraint

ConstraintLayout 2.0.0 beta 4

vom 349.99 Punkte ic_school_black_18dp
We are happy to announce the release of ConstraintLayout 2.0 beta 4. It’s available from the google maven repository:dependencies {    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'}or if using the android.support packages:dependencies {    implementation 'com.android.support.constraint:constraint

ConstraintLayout 2.0.0 beta 6

vom 349.99 Punkte ic_school_black_18dp
We are happy to announce the release of ConstraintLayout 2.0 beta 6. It’s available from the google maven repository:dependencies {    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta6'}or if using the android.support packages:dependencies {    implementation 'com.android.support.constraint:constraint

ConstraintLayout 2.0.3

vom 311.1 Punkte ic_school_black_18dp
ConstraintLayout 2.0.3 is now available on the google maven repository:dependencies {  implementation 'androidx.constraintlayout:constraintlayout:2.0.3'}or if using the android.support packages:dependencies {  implementation 'com.android.support.constraint:cons

ConstraintLayout 2.0.4

vom 291.66 Punkte ic_school_black_18dp
ConstraintLayout 2.0.4 is now available on the google maven repository:dependencies {  implementation 'androidx.constraintlayout:constraintlayout:2.0.4'}or if using the android.support packages:dependencies {  implementation 'com.android.support.constraint:constrain

ConstraintLayout 2.0.0 beta 3

vom 272.22 Punkte ic_school_black_18dp
We are happy to announce the release of ConstraintLayout 2.0 beta 2. It’s available from the google maven repository: dependencies {    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3'} or if using the android.support packages: dependencies {    implementation 'com.android.support.constraint:con

ConstraintLayout 2.0.0 beta 5

vom 272.22 Punkte ic_school_black_18dp
We are happy to announce the release of ConstraintLayout 2.0 beta 5. It’s available from the google maven repository:dependencies {    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta5'}or if using the android.support packages:dependencies {    implementation 'com.android.support.constraint:constraint

Team Security Diskussion über ConstraintLayout 2.0.0 rc1