1 / 4

條列式選單

條列式選單. 範例結果如下:. 分頁選單. 分頁選單如下圖的 Tab 選單,存放這些 Tab 則是使用 TabHost ,此分頁選單為 Android 內建選單。. 分頁選單. <?xml version="1.0" encoding="utf-8"?> < FrameLayout xmlns:android ="http://schemas.android.com/apk/res/android" android:layout_width =" fill_parent " android:layout_height =" fill_parent " >

kumiko
Download Presentation

條列式選單

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 條列式選單 範例結果如下:

  2. 分頁選單 分頁選單如下圖的Tab選單,存放這些Tab則是使用TabHost,此分頁選單為Android內建選單。

  3. 分頁選單 <?xml version="1.0" encoding="utf-8"?> <FrameLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <!-- 第一個Tab佈局 --> <LinearLayoutandroid:id="@+id/first_tab_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" androidrientation="vertical" > <!-- 可自訂元件在此 --> <TextViewandroid:text="撥出來電資訊" android:textSize="40sp" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView> </LinearLayout> 每個Tab對應到一個LinearLayout,XML如下所示:

  4. 分頁選單 <!-- 第二個Tab佈局 --> <LinearLayoutandroid:id="@+id/second_tab_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" androidrientation="vertical" > <!-- 可自訂元件在此 --> <TextViewandroid:text="接聽來電資訊" android:textSize="40sp" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView> </LinearLayout> <!-- 第三個Tab佈局 --> <LinearLayoutandroid:id="@+id/third_tab_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" androidrientation="vertical"> <!-- 可自訂元件在此 --> <TextViewandroid:text="未接來電資訊" android:textSize="40sp" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView> </LinearLayout> </FrameLayout> 每個Tab對應到一個LinearLayout,XML如下所示:

More Related