排列方向属性

--水平布局(默认)

  android:orientation="horizontal"

--垂直布局

  android:orientation="vertical"

设置子控件的位置

android:gravity //重力属性

---center 水平居中

---center_vertical 垂直居中

---top & bottom 顶部 & 底部

---left & right 靠左&靠右

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
相关资源
相似解决方案