一、LinearLayout(线性布局)
<LinearLayout android:orientation="horizontal"布局的方向
android:layout_width="fill_parent"宽度--父窗口大小
android:layout_heigh="wrap_content">高度--适合内容高度
<android:id="@+id/"
android:text=""内容
android:gravity=""控件的内容的位置
android:textSize=""控件的内容的大小
android:background=""控件的背景色
android:layout_width=""
android:layout_heigh=""
//dip和屏幕像素没有关系
内边距
android:paddingLeft="dip"
android:paddingTop=""
android:paddingRight=""
android:paddingBottom=""
android::layout_weight=""控件所占整个LinearLayout的相对比例
android:singleLine="true"将内容显示为一行
</LinearLayout>
<LinearLayout android:orientation="horizontal"布局的方向
android:layout_width="fill_parent"宽度--父窗口大小
android:layout_heigh="wrap_content">高度--适合内容高度
<android:id="@+id/"
android:text=""内容
android:gravity=""控件的内容的位置
android:textSize=""控件的内容的大小
android:background=""控件的背景色
android:layout_width=""
android:layout_heigh=""
//dip和屏幕像素没有关系
内边距
android:paddingLeft="dip"
android:paddingTop=""
android:paddingRight=""
android:paddingBottom=""
android::layout_weight=""控件所占整个LinearLayout的相对比例
android:singleLine="true"将内容显示为一行
</LinearLayout>