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
(33)
►
พฤษภาคม
พฤษภาคม
(1)
►
เมษายน
เมษายน
(9)
►
มีนาคม
มีนาคม
(6)
►
กุมภาพันธ์
กุมภาพันธ์
(8)
►
มกราคม
มกราคม
(9)
►
2023
2023
(76)
►
ธันวาคม
ธันวาคม
(4)
►
พฤศจิกายน
พฤศจิกายน
(9)
►
ตุลาคม
ตุลาคม
(7)
►
กันยายน
กันยายน
(8)
►
สิงหาคม
สิงหาคม
(3)
►
กรกฎาคม
กรกฎาคม
(4)
►
มิถุนายน
มิถุนายน
(6)
►
พฤษภาคม
พฤษภาคม
(10)
►
เมษายน
เมษายน
(4)
►
มีนาคม
มีนาคม
(7)
►
กุมภาพันธ์
กุมภาพันธ์
(9)
►
มกราคม
มกราคม
(5)
►
2022
2022
(59)
►
ธันวาคม
ธันวาคม
(3)
►
พฤศจิกายน
พฤศจิกายน
(5)
►
ตุลาคม
ตุลาคม
(8)
►
กันยายน
กันยายน
(4)
►
สิงหาคม
สิงหาคม
(4)
►
กรกฎาคม
กรกฎาคม
(2)
►
มิถุนายน
มิถุนายน
(7)
►
พฤษภาคม
พฤษภาคม
(6)
►
เมษายน
เมษายน
(5)
►
มีนาคม
มีนาคม
(6)
►
กุมภาพันธ์
กุมภาพันธ์
(5)
►
มกราคม
มกราคม
(4)
►
2021
2021
(54)
►
ธันวาคม
ธันวาคม
(3)
►
พฤศจิกายน
พฤศจิกายน
(2)
►
ตุลาคม
ตุลาคม
(6)
►
กันยายน
กันยายน
(4)
►
สิงหาคม
สิงหาคม
(5)
►
กรกฎาคม
กรกฎาคม
(8)
►
มิถุนายน
มิถุนายน
(4)
►
พฤษภาคม
พฤษภาคม
(5)
►
เมษายน
เมษายน
(1)
►
มีนาคม
มีนาคม
(7)
►
กุมภาพันธ์
กุมภาพันธ์
(4)
►
มกราคม
มกราคม
(5)
▼
2020
2020
(107)
▼
ธันวาคม
ธันวาคม
(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
►
พฤศจิกายน
พฤศจิกายน
(3)
►
ตุลาคม
ตุลาคม
(8)
►
กันยายน
กันยายน
(6)
►
สิงหาคม
สิงหาคม
(11)
►
กรกฎาคม
กรกฎาคม
(14)
►
มิถุนายน
มิถุนายน
(10)
►
พฤษภาคม
พฤษภาคม
(12)
►
เมษายน
เมษายน
(11)
►
มีนาคม
มีนาคม
(11)
►
กุมภาพันธ์
กุมภาพันธ์
(6)
►
มกราคม
มกราคม
(8)
►
2019
2019
(145)
►
ธันวาคม
ธันวาคม
(16)
►
พฤศจิกายน
พฤศจิกายน
(12)
►
ตุลาคม
ตุลาคม
(10)
►
กันยายน
กันยายน
(13)
►
สิงหาคม
สิงหาคม
(12)
►
กรกฎาคม
กรกฎาคม
(6)
►
มิถุนายน
มิถุนายน
(9)
►
พฤษภาคม
พฤษภาคม
(18)
►
เมษายน
เมษายน
(14)
►
มีนาคม
มีนาคม
(12)
►
กุมภาพันธ์
กุมภาพันธ์
(10)
►
มกราคม
มกราคม
(13)
►
2018
2018
(128)
►
ธันวาคม
ธันวาคม
(13)
►
พฤศจิกายน
พฤศจิกายน
(12)
►
ตุลาคม
ตุลาคม
(10)
►
กันยายน
กันยายน
(10)
►
สิงหาคม
สิงหาคม
(16)
►
กรกฎาคม
กรกฎาคม
(10)
►
มิถุนายน
มิถุนายน
(13)
►
พฤษภาคม
พฤษภาคม
(9)
►
เมษายน
เมษายน
(11)
►
มีนาคม
มีนาคม
(12)
►
กุมภาพันธ์
กุมภาพันธ์
(9)
►
มกราคม
มกราคม
(3)
►
2017
2017
(48)
►
ธันวาคม
ธันวาคม
(3)
►
พฤศจิกายน
พฤศจิกายน
(2)
►
ตุลาคม
ตุลาคม
(8)
►
กันยายน
กันยายน
(3)
►
สิงหาคม
สิงหาคม
(4)
►
กรกฎาคม
กรกฎาคม
(3)
►
มิถุนายน
มิถุนายน
(3)
►
พฤษภาคม
พฤษภาคม
(4)
►
เมษายน
เมษายน
(5)
►
มีนาคม
มีนาคม
(5)
►
กุมภาพันธ์
กุมภาพันธ์
(6)
►
มกราคม
มกราคม
(2)
►
2016
2016
(5)
►
ธันวาคม
ธันวาคม
(3)
►
พฤศจิกายน
พฤศจิกายน
(2)
Subscribe to updates
บทความ
Atom
บทความ
Android Developers
Android Studio
Preview
Release Updates
ConstraintLayout 2.1.0 alpha 2
วันพฤหัสบดีที่ 17 ธันวาคม พ.ศ. 2563
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