=============
LinearLayout
============
线性布局是Android中最基本的一种布局,它只有两种布局方向:
- vertical(竖直方向)
- horizontal(纵向)
eg: layout_linearlayout.xml
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”
android:layout_width=“match_parent”
android:layout_height=“match_parent”
android:orientation=“vertical”>
<Button
android:layout_width=“match_parent”
android:layout_height=“wrap_content”
android:text=“我是按钮1”
android:id="@+id/button" />
<Button
android:layout_width=“match_parent”
android: