Show game data version
[louyapi.git] / src / main / res / layout / activity_main.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     android:layout_width="match_parent"
4     android:layout_height="match_parent"
5     android:isScrollContainer="false"
6     android:orientation="vertical">
7
8     <TextView
9         android:id="@+id/textView"
10         style="@style/headline"
11         android:text="@string/status" />
12
13     <TableLayout
14         android:layout_width="match_parent"
15         android:layout_height="wrap_content">
16
17         <TableRow
18             android:layout_width="match_parent"
19             android:layout_height="match_parent">
20
21             <TextView
22                 android:id="@+id/textView2"
23                 style="@style/status_label"
24                 android:text="@string/current_api_server" />
25
26             <TextView
27                 android:id="@+id/statusCurrentServer"
28                 style="@style/status_value"
29                 android:text="@string/loading" />
30         </TableRow>
31
32         <TableRow
33             android:layout_width="match_parent"
34             android:layout_height="match_parent">
35
36             <TextView
37                 android:id="@+id/textView4"
38                 style="@style/status_label"
39                 android:layout_width="wrap_content"
40                 android:layout_height="wrap_content"
41                 android:text="@string/ip_address" />
42
43             <TextView
44                 android:id="@+id/statusIpAddress"
45                 style="@style/status_value"
46                 android:layout_width="wrap_content"
47                 android:layout_height="wrap_content"
48                 android:text="@string/loading" />
49         </TableRow>
50
51         <TableRow
52             android:layout_width="match_parent"
53             android:layout_height="match_parent">
54
55             <TextView
56                 android:id="@+id/textView6"
57                 style="@style/status_label"
58                 android:layout_width="wrap_content"
59                 android:layout_height="wrap_content"
60                 android:text="@string/louyapi_port_number" />
61
62             <TextView
63                 android:id="@+id/statusPortNumber"
64                 style="@style/status_value"
65                 android:layout_width="wrap_content"
66                 android:layout_height="wrap_content"
67                 android:text="@string/loading" />
68         </TableRow>
69
70         <TableRow
71             android:layout_width="match_parent"
72             android:layout_height="match_parent">
73
74             <TextView
75                 android:id="@+id/textView7"
76                 style="@style/status_label"
77                 android:layout_width="wrap_content"
78                 android:layout_height="wrap_content"
79                 android:text="Game data version:" />
80
81             <TextView
82                 android:id="@+id/statusGameDataVersion"
83                 style="@style/status_value"
84                 android:layout_width="wrap_content"
85                 android:layout_height="wrap_content"
86                 android:text="@string/loading" />
87         </TableRow>
88
89     </TableLayout>
90
91     <Space
92         android:layout_width="match_parent"
93         android:layout_height="wrap_content"
94         android:layout_weight="1" />
95
96     <TextView
97         android:id="@+id/textView8"
98         style="@style/headline"
99         android:layout_width="match_parent"
100         android:layout_height="wrap_content"
101         android:text="@string/configuration_management_sdcard_ouya_config_properties" />
102
103     <LinearLayout
104         android:layout_width="match_parent"
105         android:layout_height="wrap_content"
106         android:orientation="horizontal">
107
108         <Button
109             android:id="@+id/buttonUseLouyapi"
110             android:layout_width="0px"
111             android:layout_height="wrap_content"
112             android:layout_weight="1"
113             android:onClick="onClickUseLouyapi"
114             android:text="@string/use_local_api"
115             android:textAllCaps="false" />
116
117         <Button
118             android:id="@+id/buttonUseCweiske"
119             android:layout_width="0px"
120             android:layout_height="wrap_content"
121             android:layout_weight="1"
122             android:onClick="onClickUseCweiske"
123             android:text="@string/use_ouya_cweiske_de_api"
124             android:textAllCaps="false" />
125
126         <Button
127             android:id="@+id/buttonUseDefault"
128             android:layout_width="0dp"
129             android:layout_height="wrap_content"
130             android:layout_weight="1"
131             android:onClick="onClickUseDefault"
132             android:text="@string/use_default"
133             android:textAllCaps="false" />
134     </LinearLayout>
135
136     <LinearLayout
137         android:layout_width="match_parent"
138         android:layout_height="wrap_content"
139         android:orientation="horizontal">
140
141         <Button
142             android:id="@+id/buttonBackupCreate"
143             android:layout_width="0px"
144             android:layout_height="wrap_content"
145             android:layout_weight="1"
146             android:onClick="onClickBackupCreate"
147             android:text="@string/create_configuration_backup"
148             android:textAllCaps="false" />
149
150         <Button
151             android:id="@+id/buttonBackupRestore"
152             android:layout_width="0px"
153             android:layout_height="wrap_content"
154             android:layout_weight="1"
155             android:onClick="onClickBackupRestore"
156             android:text="@string/restore_backup"
157             android:textAllCaps="false" />
158
159     </LinearLayout>
160
161     <LinearLayout
162         android:layout_width="match_parent"
163         android:layout_height="wrap_content"
164         android:orientation="horizontal">
165
166         <Space
167             android:layout_width="0px"
168             android:layout_height="wrap_content"
169             android:layout_weight="1" />
170
171         <TextView
172             android:id="@+id/backupDate"
173             android:layout_width="0px"
174             android:layout_height="wrap_content"
175             android:layout_weight="1"
176             android:gravity="center" />
177
178     </LinearLayout>
179
180     <Space
181         android:layout_width="match_parent"
182         android:layout_height="wrap_content"
183         android:layout_weight="1" />
184
185     <Button
186         android:id="@+id/buttonExit"
187         android:layout_width="100dp"
188         android:layout_height="wrap_content"
189         android:onClick="onClickExit"
190         android:text="@string/exit"
191         android:textAllCaps="false" />
192
193 </LinearLayout>