ConstraintLayout导读

时间:2023-03-09 07:19:22
ConstraintLayout导读

ConstraintLayout是Android Studio 2.2中主要的新增功能之一,也是Google在去年的I/O大会上重点宣传的一个功能,可以把ConstraintLayout看成是一个更高级的RelativeLayout,它可以通过控件之间的相互约束,在一层view中实现非常复杂的布局。同时Android Studio 2.2之后对ConstraintLayout的编辑提供了特殊的可视化操作的支持,可以直接拖动控件,比常规布局的可视化支持体验要好太多。要完整的体验ConstraintLayout的所有功能,请使用最新版本的Android Studio。

目前对ConstraintLayout的介绍已经有了比较详细的文章,本站就不做过多的介绍了。本专题原创(或者翻译)文章主要针对一些技巧和新特性。下面给出一些介绍ConstraintLayout的优秀文章:

官网

博客:Build a Responsive UI with ConstraintLayout

api介绍:https://developer.android.com/reference/android/support/constraint/ConstraintLayout.html

郭霖的博客

这应该是快速入门ConstraintLayout的最好文章了:

Android新特性介绍,ConstraintLayout完全解析

云在千峰的博客

这篇文章非常详细的介绍了ConstraintLayout的各种属性。

ConstraintLayout 终极秘籍(上)

constraintlayout网站(非官方)

这个网站是一个开源项目,里面有很多实用的教程,本专题内有几篇翻译

https://constraintlayout.github.io

realm撰写的ConstraintLayout高级功能的教程

Advanced ConstraintLayout

转载于:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2017/1017/8603.html