root / res / layout / tabview.xml @ b722cab3
History | View | Annotate | Download (2.1 kB)
1 |
<?xml version="1.0" encoding="utf-8"?>
|
---|---|
2 |
<TabHost xmlns:android="http://schemas.android.com/apk/res/android" |
3 |
android:id="@+id/tabhost" |
4 |
android:layout_width="fill_parent" |
5 |
android:layout_height="fill_parent" |
6 |
>
|
7 |
<LinearLayout
|
8 |
android:orientation="vertical" |
9 |
android:layout_width="fill_parent" |
10 |
android:layout_height="fill_parent"> |
11 |
<TabWidget android:id="@android:id/tabs" |
12 |
android:layout_width="fill_parent" |
13 |
android:layout_height="wrap_content" |
14 |
/>
|
15 |
<FrameLayout android:id="@android:id/tabcontent" |
16 |
android:layout_width="fill_parent" |
17 |
android:layout_height="wrap_content"> |
18 |
|
19 |
<!--
|
20 |
<AnalogClock android:id="@+id/tab1"
|
21 |
android:layout_width="fill_parent"
|
22 |
android:layout_height="fill_parent"
|
23 |
android:layout_centerHorizontal="true"
|
24 |
/>-->
|
25 |
|
26 |
<ListView android:id="@+id/tab1" |
27 |
android:layout_width="fill_parent" |
28 |
android:layout_height="0dip" |
29 |
android:layout_weight="1" |
30 |
android:stackFromBottom="true" |
31 |
android:transcriptMode="normal" |
32 |
/>
|
33 |
|
34 |
<ListView android:id="@+id/tab2" |
35 |
android:layout_width="fill_parent" |
36 |
android:layout_height="0dip" |
37 |
android:layout_weight="1" |
38 |
android:stackFromBottom="true" |
39 |
android:transcriptMode="normal" |
40 |
/>
|
41 |
|
42 |
<ListView android:id="@+id/tab3" |
43 |
android:layout_width="fill_parent" |
44 |
android:layout_height="0dip" |
45 |
android:layout_weight="1" |
46 |
android:stackFromBottom="true" |
47 |
android:transcriptMode="normal" |
48 |
/>
|
49 |
<!--
|
50 |
<Button android:id="@+id/tab2"
|
51 |
android:layout_width="fill_parent"
|
52 |
android:layout_height="fill_parent"
|
53 |
android:text="A random button"
|
54 |
/>
|
55 |
-->
|
56 |
|
57 |
</FrameLayout>
|
58 |
|
59 |
</LinearLayout>
|
60 |
</TabHost>
|