]> Pileus Git - ~andy/spades/blob - res/layout/main.xml
Add IRC Service and update UI
[~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                         <TextView
54                                 android:id="@+id/spades"
55                                 android:layout_width="fill_parent"
56                                 android:layout_height="fill_parent"
57                                 android:text="Spades" />
58                         <ScrollView
59                                 android:id="@+id/debug_scroll"
60                                 android:layout_width="fill_parent"
61                                 android:layout_height="wrap_content"
62                                 android:scrollbars="vertical"
63                                 android:fillViewport="true">
64                                 <TextView
65                                         android:id="@+id/debug"
66                                         android:layout_width="fill_parent"
67                                         android:layout_height="fill_parent" />
68                         </ScrollView>
69                 </FrameLayout>
70         </LinearLayout>
71 </TabHost>
72 <!-- vim: set ts=4 sw=4 sts=4: -->