界面布局

1.垂直线性布局(vertical):每行只能设置一个控件。android

    android:orientation="vertical"声明垂直线性布局布局

    android:layout_width="fill_parent"填充整个屏幕get

    android:layout_height="wrap_content"相似于自动设置高度io

    android:layout_weight="1" 默认为0,意思须要多大就占用多大,具体值须要根据比率来进行分配容器

2.水平线性布局(horizontal):每列只能设置一个控件.表单

android:orientation="horizontal"声明垂直线性布局layout

3.相对布局(RelativeLayout)tab

4.表单布局(TableLayout)标签

5.切换卡(TabWidget):用tabHost存放多个Tab标签的容器co

相关文章
相关标签/搜索