所谓线性布局就是在该标签下的所有子元素会根据其orientation属性的值来决定是按行或者是按列逐个显示。
下面用代码实现以下
在sting.xml中的内容
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, UIActivity!</string>
<string name="app_name">用户界面</string>
<string name="name_text">请输入用户名</string>
<string name="ok_button">确定</string>
<string name="cancle_button">取消</string>
</resources>
在main.xml中的代码
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height=&#