ConstraintLayout 约束布局

ConstraintLayout 约束布局

诞生

  • 在Google I/O 2016 上发布了ConstraintLayout Android Studio 2.2中发布的新功能。
  • ConstraintLayout可谓RelativeLayout的升级版,但是要比前者强大太多。
  • Constraint翻译为约束,ConstraintLayout就是在子 View 上添加各种约束条件来控制每个子View所在的位置以及显示的尺寸。
  • 而且这一切都是通过可视化操作来实现的。

学习文档

  • ConstraintLayout 官方样例代码
    https://github.com/googlecodelabs/constraint-layout

  • Google官方文档
    https://developer.android.com/reference/android/support/constraint/ConstraintLayout.html

其他学习约束布局的博客推荐

  • 来自洪洋大神的公众号推荐:
    1. 大神的微信公众号: hongyangAndroid
    2. http://mp.weixin.qq.com/s/8KDmWV_IU2NyP8DwQV52AQ

你可能感兴趣的:(ConstraintLayout 约束布局)