Statistics
| Branch: | Revision:

root / res / layout / tabview.xml @ 984acda7

History | View | Annotate | Download (1.8 kB)

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