阅读背景:

[置顶] 安卓自适应布局(关于权重weight的使用技巧!)

来源:互联网 

weight和weightSum

Layout Weight

LinearLayout also supports assigning a weight to individual children with the android:layout_weight attribute. This attribute assigns an “importance” value to a view in terms of how much space it should occupy on the screen. A larger weight value allows it to expand to fill any remaining space in the parent view. Child views can specify a weight value, and then any remaining space in the view group is assigned to children in the proportion of their declared weight. Default weight is zero.LinearLayout also sup




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: