1 线性布局 LinearLayout // 布局方向 orientation="vertical/horizontal" // 子元素的对齐方式 gravity="left|buttom" // 控制该组件在父容器的对齐方式 layout_gravity // 权重,将剩余部分等比划分 weig