ConstraintLayout 高级特性,工具总结
layout_constraintWidth用法: xml中app:layout_constrainedWidth="true"作用:使得该view的宽受限于他的约束app:layout_constrainedHeight="true"同理一个wrapcontent的view 的宽度随着内容变多最终是等于parent的宽度的 但实际上它的宽度不应改如此eg1: 水平方向上 v1 leftToLeft = parent ,rightToLeft = v2而v2 rightToRight = p
原创
2021-08-25 16:57:29 ·
1230 阅读 ·
0 评论