android系列之Layout学习笔记

1.Linearout 权重的用法: 1.wrap_content 设置A的weight=1;B的weight=2;C的weight=3即可按照比例显示 2.fill_parent/match_parent 设置A的weight=1;B的weight=2;C的weight=3 用下面这个公式计算: 1-3=-2(只有一个屏幕,但是有三个fill_parent) A     :1+(-2)*1/6=
相关文章
相关标签/搜索