root/trunk/18.TabActivityTest/res/layout/main.xml

리비전 44, 1.1 kB (mefour에 의해 체크인됨, 15 년 전)

--

Line 
1 <?xml version="1.0" encoding="utf-8"?>
2 <TabHost
3         xmlns:android="http://schemas.android.com/apk/res/android"
4         android:id="@android:id/tabhost"
5         android:layout_width="fill_parent"
6         android:layout_height="fill_parent">
7         <LinearLayout
8             android:orientation="vertical"
9             android:layout_width="fill_parent"
10             android:layout_height="fill_parent"
11             >
12                 <TabWidget
13                         android:id="@android:id/tabs"
14                         android:layout_width="fill_parent"
15                         android:layout_height="wrap_content"/>
16                 <FrameLayout
17                         android:id="@android:id/tabcontent"
18                         android:layout_width="fill_parent"
19                         android:layout_height="fill_parent"
20                         >
21                         <TextView
22                                 android:id="@+id/textView01"
23                                 android:layout_width="fill_parent"
24                                 android:layout_height="fill_parent"
25                                 android:text="First Tab"
26                                 />
27                         <TextView
28                                 android:id="@+id/textView02"
29                                 android:layout_width="fill_parent"
30                                 android:layout_height="fill_parent"
31                                 android:text="Second Tab"
32                                 />
33                         <ImageView
34                                 android:id="@+id/imageView01"
35                                 android:layout_width="fill_parent"
36                                 android:layout_height="fill_parent"
37                                 android:src="@drawable/a"
38                                 />
39                 </FrameLayout>
40         </LinearLayout>
41 </TabHost>
참고: 소스 브라우저를 사용하면서 도움이 필요하다면, TracBrowser를 참고하십시오.