ConstraintLayout 2.0.0 beta 6

ConstraintLayout 2.0.0 beta 6

我们很高兴地宣布 ConstraintLayout 2.0 beta 6 发布了。

它可以从 Google 的 maven 仓库中获取:

dependencies {  
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta6'  
}

或者也可以使用 android.support 包:

dependencies {  
    implementation 'com.android.support.constraint:constraint-layout:2.0.0-beta6'  
}

文档:

  1. https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout
  2. https://developer.android.com/reference/androidx/constraintlayout/motion/widget/MotionLayout

代码示例: https://github.com/android/views-widgets-samples/tree/master/ConstraintLayoutExamples

Bug 修复

以下是在 beta 6 中修复的问题列表。需要特别关注的是 MotionLayout 中的组可见性处理和派生约束问题。

MotionLayout constraintsets don't correctly read match width/height defaults 156539907
ImageFilterView & ImageFilterButton fail to set round 156420202
Views in ConstraintLayout not honoring "match constraints" (0dp) when used with ViewPager2 147202197
NoSuchMethodError: getLayoutDirection() 147871163
[MotionLayout] ANR 156047801
Group visibility + single view visibility 73186245
Group Visibility Does Not Support View.INVISIBLE 79307158
ConstraintLayout sometimes ignores visibility changes 154533618
ConstraintLayout Group visibility not updated 117485026
ConstraintLayout Group - Changing visibility when using INVISIBLE doesn't work correctly 130524019
ConstraitLayout Group 143163408

版权声明

禁止一切形式的转载-禁止商用-禁止衍生 申请授权

脉脉不得语
脉脉不得语
Zhengzhou Website
Android Developer | https://androiddevtools.cn and https://androidweekly.io Funder | GDG Zhengzhou Funder & Ex Organizer | http://Toast.show(∞) Podcast Host

你已经成功订阅到 Android 开发技术周报
太棒了!接下来,完成检验以获得全部访问权限 Android 开发技术周报
欢迎回来!你已经成功登录了。
Unable to sign you in. Please try again.
成功!您的帐户已完全激活,您现在可以访问所有内容。
Error! Stripe checkout failed.
Success! Your billing info is updated.
Error! Billing info update failed.
🍗