如何实现组件水平或垂直排列

时间:2024-10-12 07:49:20

1、在水平布局中增加垂直布局方式的LinearLayout<LinearLayoutandroid:orientation="horizontal"/>//水平布局

如何实现组件水平或垂直排列

2、 <LinearLayoutandroid:orientation="vertical"/>//垂直布局媪青怍牙</LinearLayout></LinearLayout>

如何实现组件水平或垂直排列

3、在垂直布局方式的LinearLayout中添加控件LinearLayout

如何实现组件水平或垂直排列

4、an蟠校盯昂droid:orientation="horizontal"/>//水平布局媪青怍牙<LinearLayoutandroid:orientation="vertical"/>//处置布局

如何实现组件水平或垂直排列

5、 <Button/>垂直布局的控件<Button/>垂直布局的控件 </LinearLayout></LinearLayout>

如何实现组件水平或垂直排列

6、套一个linearlayout gravity=verical,z 然后在里边设置要纵向排练的空间

如何实现组件水平或垂直排列
© 手抄报圈