XML布局

根标签

<Linearyout></Linearyout>

标签属性

android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"

属性解释

match_parent: 
控件的宽度或高度会填满其所在的父控件

fill_parent:
是在SDK2.0以下版本中可以使用

wrap_content:
控件大小由内容决定

orientation:
控件排列方向 : vertical(垂直)horizontal(水平) 

posted @ 2017-03-23 16:42  星河mio  阅读(189)  评论(0编辑  收藏  举报