]> Pileus Git - ~andy/spades/blob - res/layout/main.xml
Add connect button
[~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/connect"
47                                                 android:layout_width="wrap_content"
48                                                 android:layout_height="fill_parent"
49                                                 android:onClick="onConnect"
50                                                 android:text="Connect" />
51                                         <Button
52                                                 android:id="@+id/send"
53                                                 android:visibility="gone"
54                                                 android:layout_width="wrap_content"
55                                                 android:layout_height="fill_parent"
56                                                 android:onClick="onSend"
57                                                 android:text="Send" />
58                                 </LinearLayout>
59                         </LinearLayout>
60                         <LinearLayout
61                                 android:id="@+id/spades"
62                                 android:orientation="vertical"
63                                 android:layout_width="fill_parent"
64                                 android:layout_height="fill_parent">
65                                 <TextView
66                                         android:id="@+id/spades_text"
67                                         android:layout_width="fill_parent"
68                                         android:layout_height="wrap_content"
69                                         android:text="Spades" />
70                         </LinearLayout>
71                         <ScrollView
72                                 android:id="@+id/debug_scroll"
73                                 android:layout_width="fill_parent"
74                                 android:layout_height="wrap_content"
75                                 android:scrollbars="vertical"
76                                 android:fillViewport="true">
77                                 <TextView
78                                         android:id="@+id/debug"
79                                         android:layout_width="fill_parent"
80                                         android:layout_height="fill_parent" />
81                         </ScrollView>
82                 </FrameLayout>
83         </LinearLayout>
84 </TabHost>
85 <!-- vim: set ts=4 sw=4 sts=4: -->