Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019-10-28:有用过ConstraintLayout吗?它有哪些特点? #175

Open
Moosphan opened this issue Oct 28, 2019 · 7 comments
Open

2019-10-28:有用过ConstraintLayout吗?它有哪些特点? #175

Moosphan opened this issue Oct 28, 2019 · 7 comments

Comments

@Moosphan
Copy link
Owner

No description provided.

@zhaoerlei1989
Copy link

这一篇文章写的还是不错,https://www.jianshu.com/p/17ec9bd6ca8a

@shuandroid
Copy link

ConstraintLayout 里面有个组件叫 Group, 是可以统一控制两个以上 View 的可见性等。因为 ConstraintLayout 减少了 View 的层级,可能是处于这个考量,提供了 Group 这个控件,它并不可见,也不会带来额外的开销。但是但是!!!除非 100% 确定「这几个 View」 的可见性完全一致,否则不要使用这个 Group 控件。有些坑。详情就不再这里叙述了。

@messi-wpy
Copy link

之前不是一直有讨论constraintlayout的性能真的比其他线性布局或者相对布局高吗?有没有大佬来肯定一下

@Squirtle12
Copy link

推一篇自己写的文章,https://blog.csdn.net/weixin_41796401/article/details/101123937

@kwcn
Copy link

kwcn commented Oct 29, 2019

属性图:
ConstraintLayout

@LvKang-insist
Copy link

1,相对定位
2,角度定位
3,边距
4,居中偏移
5,尺寸约束
6,百分比宽高
7,链
还有各种工具

@mlinqirong
Copy link

性能上的优化 减少布局嵌套的问题
特点有
1,相对定位
2,尺寸约束
3,边距设置
4,角度设置
5,宽高占比
6,居中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants