]> Pileus Git - ~andy/spades/blob - res/layout/main.xml
Add initial OpenGL example
[~andy/spades] / res / layout / main.xml
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                 <TabWidget
12                         android:id="@android:id/tabs"
13                         android:layout_width="fill_parent"
14                         android:layout_height="wrap_content" />
15                 <FrameLayout
16                         android:id="@android:id/tabcontent"
17                         android:layout_width="fill_parent"
18                         android:layout_height="fill_parent">
19                         <LinearLayout
20                                 android:id="@+id/chat"
21                                 android:orientation="vertical"
22                                 android:layout_width="fill_parent"
23                                 android:layout_height="fill_parent">
24                                 <ScrollView
25                                         android:id="@+id/log_scroll"
26                                         android:layout_width="fill_parent"
27                                         android:layout_height="0dp"
28                                         android:layout_weight="1"
29                                         android:scrollbars="vertical"
30                                         android:fillViewport="true">
31                                         <TextView
32                                                 android:id="@+id/log"
33                                                 android:layout_width="fill_parent"
34                                                 android:layout_height="fill_parent" />
35                                 </ScrollView>
36                                 <LinearLayout
37                                         android:orientation="horizontal"
38                                         android:layout_width="fill_parent"
39                                         android:layout_height="wrap_content">
40                                         <EditText
41                                                 android:id="@+id/input"
42                                                 android:layout_width="wrap_content"
43                                                 android:layout_height="fill_parent"
44                                                 android:layout_weight="1" />
45                                         <Button
46                                                 android:id="@+id/send"
47                                                 android:layout_width="wrap_content"
48                                                 android:layout_height="fill_parent"
49                                                 android:onClick="onSend"
50                                                 android:text="Send" />
51                                 </LinearLayout>
52                         </LinearLayout>
53                         <LinearLayout
54                                 android:id="@+id/spades"
55                                 android:orientation="vertical"
56                                 android:layout_width="fill_parent"
57                                 android:layout_height="fill_parent">
58                                 <TextView
59                                         android:id="@+id/spades_text"
60                                         android:layout_width="fill_parent"
61                                         android:layout_height="wrap_content"
62                                         android:text="Spades" />
63                         </LinearLayout>
64                         <ScrollView
65                                 android:id="@+id/debug_scroll"
66                                 android:layout_width="fill_parent"
67                                 android:layout_height="wrap_content"
68                                 android:scrollbars="vertical"
69                                 android:fillViewport="true">
70                                 <TextView
71                                         android:id="@+id/debug"
72                                         android:layout_width="fill_parent"
73                                         android:layout_height="fill_parent" />
74                         </ScrollView>
75                 </FrameLayout>
76         </LinearLayout>
77 </TabHost>
78 <!-- vim: set ts=4 sw=4 sts=4: -->