LinearLayout(线性布局)

1.weight属性详解: 用法归纳:      按比例划分水平方向:将涉及到的View的android:width属性设置为0dp,然后设置为android weight属性设置比例即可;     类推,竖直方向,只需设android:height为0dp,然后设weight属性即可!     如果我们不适用上述那种设置为0dp的方式,直接用wrap_content和match_parent的话
相关文章
相关标签/搜索