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(水平) 

原文地址:https://www.cnblogs.com/zry2510/p/6605925.html