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
►
2025
2025
(30)
►
四月
四月
(8)
►
三月
三月
(7)
►
二月
二月
(9)
►
一月
一月
(6)
►
2024
2024
(90)
►
十二月
十二月
(7)
►
十一月
十一月
(4)
►
十月
十月
(8)
►
九月
九月
(8)
►
八月
八月
(9)
►
七月
七月
(6)
►
六月
六月
(7)
►
五月
五月
(9)
►
四月
四月
(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)
►
十一月
十一月
(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)
ConstraintLayout 1.0 is now available
Android Studio 2.3 RC 1 is Now Available
ConstraintLayout beta 5 is now available
Android Studio 2.3 Beta 4 is now available
Android Emulator Revision 25.3.0 (Feb 2017)
Android SDK Tools Revision 25.3.0 (Feb 2017)
►
一月
一月
(2)
►
2016
2016
(5)
►
十二月
十二月
(3)
►
十一月
十一月
(2)
Subscribe to updates
博文
Atom
博文
Android Developers
Android Studio
Preview
Release Updates
ConstraintLayout 1.0 is now available
2017年2月22日星期三
After months of intensive development, we are delighted to announce the 1.0 release of the ConstraintLayout library. It's available as a small unbundled library, in the Android Studio SDK Manager (under the "Support Repository" section), compatible with API level 9 (Gingerbread and above). We recommend updating to this version, particularly if used in production.
Note:
with Android Studio 2.3 reaching release candidate status, we also encourage people to switch to it for editing layouts (ConstraintLayout included). Many improvements have been made since 2.2, providing a smoother experience.
The ConstraintLayout library allows you to create complex layouts easily, avoiding deep nested hierarchies and providing many powerful features for designing UIs:
Relative positioning of widgets to parent or siblings
Centering positioning and bias control
Flexible size control (min/max/wrap/constrained)
Per axis group behavior (chains, weights)
Advanced visibility behavior (gone handling and margins)
Horizontal and Vertical virtual guidelines (fixed positions or percentage-based)
Aspect Ratio support
Advanced API to set constraints programmatically, allowing easy animations between layouts
A
code lab
is available as an introduction to ConstraintLayout as well as a
developer guide
. A complete online
documentation
is also available. Many excellent tutorials have also been created by the developers’ community; you can find them on
YouTube
,
Medium
, or your
favorite search engine
.
Changes since beta5:
bug fixes related to wrap_content, support for MEASURE_STATE_TOO_SMALL.