0
点赞
收藏
分享

微信扫一扫

线性布局的常用属性


排列方向属性

--水平布局(默认)

  android:orientation="horizontal"

--垂直布局

  android:orientation="vertical"

设置子控件的位置

android:gravity //重力属性

---center 水平居中

---center_vertical 垂直居中

---top & bottom 顶部 & 底部

---left & right 靠左&靠右

举报

相关推荐

0 条评论