安卓布局方式

布局方式

1 LinearLayout(线性布局)
  android:orientation="horizontal" //布局
  android:layout_width="fill_parent" //控件宽度
  android:layout_height="fill_parent" //控件高度

  注意:水平:horizontal 垂直:vertical
  wrap_content:宽度/高度和内容的宽度/高度相同
  fill_parent:宽度/高度是整个父组件的宽度/高度

posted @ 2017-05-18 19:43  孤独患者xy  阅读(145)  评论(0编辑  收藏  举报