界面佈局

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

相關文章
相關標籤/搜索