Upload
kumiko
View
46
Download
4
Embed Size (px)
DESCRIPTION
條列式選單. 範例結果如下:. 分頁選單. 分頁選單如下圖的 Tab 選單,存放這些 Tab 則是使用 TabHost ,此分頁選單為 Android 內建選單。. 分頁選單. < FrameLayout xmlns:android ="http://schemas.android.com/apk/res/android" android:layout_width =" fill_parent " android:layout_height =" fill_parent " > - PowerPoint PPT Presentation
Citation preview
條列式選單
範例結果如下:
分頁選單
分頁選單如下圖的 Tab 選單,存放這些 Tab 則是使用 TabHost ,此分頁選單為 Android 內建選單。
分頁選單
每個 Tab 對應到一個 LinearLayout , XML 如下所示:<?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"
>
<!-- 第一個 Tab 佈局 -->
<LinearLayout android:id="@+id/first_tab_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
androidrientation="vertical" >
<!-- 可自訂元件在此 -->
<TextView android:text=" 撥出來電資訊 "
android:textSize="40sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
</LinearLayout>
分頁選單
每個 Tab 對應到一個 LinearLayout , XML 如下所示:<!-- 第二個 Tab 佈局 -->
<LinearLayout android:id="@+id/second_tab_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
androidrientation="vertical" >
<!-- 可自訂元件在此 -->
<TextView android:text=" 接聽來電資訊 "
android:textSize="40sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
</LinearLayout>
<!-- 第三個 Tab 佈局 -->
<LinearLayout android:id="@+id/third_tab_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
androidrientation="vertical">
<!-- 可自訂元件在此 -->
<TextView android:text=" 未接來電資訊 "
android:textSize="40sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
</LinearLayout>
</FrameLayout>