<?xml version="1.0//MXL版本" encoding="utf-8"?> //格式UTF-8 因为很好的兼容中文
<LinearLayout//线性布局的标签 xmlns:android="http://schemas.android.com/apk/res/android"//XML 命名空间
android:orientation="vertical" //控制线性布局 orinentation (方向) “Vertical”(垂直) “horizontal”(水平)
android:layout_width="fill_parent" //控制线性布局宽度 “fill_parent”(填满整个布局或者 副控件) “wrap_content”(填满内容)
android:layout_height="fill_parent"//控制线性布局高度“fill_parent”(填满整个布局或者 副控件) “wrap_content”(填满内容)
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"//内容
android:gravity="center_vertical"// 内容位置,句容
android:textSize="35pt" //字体大小
android:layout_width="fill_parent"//填充位置
android:layout_height="fill_parent"//填充位置
android:paddingLeft="10dip"//内边框的左宽度
android:paddingTop="20dip"//内边框的上宽度
android:paddingRight="30dip"//内边框右宽度
android:paddingBottom="40dip"//内边框下宽度
android:layout_weight="1"//位置占整体布局的比例
android:singleLine="true"//内容是否显示在一行内
/>
</LinearLayout>