线性布局的常用属性

排列方向属性

--水平布局(默认)

  android:orientation="horizontal"

--垂直布局

  android:orientation="vertical"

设置子控件的位置

android:gravity //重力属性

---center 水平居中

---center_vertical 垂直居中

---top & bottom 顶部 & 底部

---left & right 靠左&靠右

posted @ 2019-03-06 20:06  Philtell  阅读(899)  评论(0编辑  收藏  举报