dd277ffb69c13a6e173efb008267a2f08745fa80
[fw/altos] / altosdroid / res / layout / altosdroid.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3          Copyright © 2012-2013 Mike Beattie <mike@ethernal.org>
4
5          This program is free software; you can redistribute it and/or modify
6          it under the terms of the GNU General Public License as published by
7          the Free Software Foundation; version 2 of the License.
8
9          This program is distributed in the hope that it will be useful, but
10          WITHOUT ANY WARRANTY; without even the implied warranty of
11          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12          General Public License for more details.
13
14          You should have received a copy of the GNU General Public License along
15          with this program; if not, write to the Free Software Foundation, Inc.,
16          59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17 -->
18     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19         android:layout_width="fill_parent"
20         android:layout_height="wrap_content"
21         android:layout_weight="0" >
22
23         <RelativeLayout
24             android:id="@+id/strut"
25             android:layout_width="10dip"
26             android:layout_height="wrap_content"
27             android:layout_centerHorizontal="true" >
28
29         </RelativeLayout>
30
31         <RelativeLayout
32             android:id="@+id/callsign_container"
33             android:layout_width="wrap_content"
34             android:layout_height="wrap_content"
35             android:layout_alignParentLeft="true"
36             android:layout_toLeftOf="@+id/strut" >
37
38             <TextView
39                 android:id="@+id/callsign_label"
40                 android:layout_width="wrap_content"
41                 android:layout_height="wrap_content"
42                 android:text="@string/callsign_label" />
43
44             <TextView
45                 android:id="@+id/callsign_value"
46                 android:layout_width="wrap_content"
47                 android:layout_height="wrap_content"
48                 android:layout_alignParentRight="true"
49                 android:layout_below="@id/callsign_label"
50                 android:text=""
51                 android:textAppearance="?android:attr/textAppearanceLarge" />
52
53         </RelativeLayout>
54
55         <RelativeLayout
56             android:id="@+id/rssi_container"
57             android:layout_width="wrap_content"
58             android:layout_height="wrap_content"
59             android:layout_toRightOf="@id/strut"
60             android:layout_alignParentRight="true" >
61
62             <TextView
63                 android:id="@+id/rssi_label"
64                 android:layout_width="wrap_content"
65                 android:layout_height="wrap_content"
66                 android:text="@string/rssi_label" />
67
68             <TextView
69                 android:id="@+id/rssi_value"
70                 android:layout_width="wrap_content"
71                 android:layout_height="wrap_content"
72                 android:layout_alignParentRight="true"
73                 android:layout_below="@+id/rssi_label"
74                 android:textAppearance="?android:attr/textAppearanceLarge" />
75         </RelativeLayout>
76
77         <RelativeLayout
78             android:id="@+id/serial_container"
79             android:layout_width="wrap_content"
80             android:layout_height="wrap_content"
81             android:layout_below="@+id/callsign_container"
82             android:layout_toLeftOf="@+id/strut" >
83
84             <TextView
85                 android:id="@+id/serial_label"
86                 android:layout_width="wrap_content"
87                 android:layout_height="wrap_content"
88                 android:text="@string/serial_label" />
89
90             <TextView
91                 android:id="@+id/serial_value"
92                 android:layout_width="wrap_content"
93                 android:layout_height="wrap_content"
94                 android:layout_alignParentRight="true"
95                 android:layout_below="@+id/serial_label"
96                 android:textAppearance="?android:attr/textAppearanceLarge" />
97         </RelativeLayout>
98
99         <RelativeLayout
100             android:id="@+id/flight_container"
101             android:layout_width="wrap_content"
102             android:layout_height="wrap_content"
103             android:layout_below="@+id/callsign_container"
104             android:layout_toRightOf="@+id/strut"
105             android:layout_alignParentRight="true" >
106
107             <TextView
108                 android:id="@+id/flight_label"
109                 android:layout_width="wrap_content"
110                 android:layout_height="wrap_content"
111                 android:text="@string/flight_label" />
112
113             <TextView
114                 android:id="@+id/flight_value"
115                 android:layout_width="wrap_content"
116                 android:layout_height="wrap_content"
117                 android:layout_alignParentRight="true"
118                 android:layout_below="@+id/flight_label"
119                 android:textAppearance="?android:attr/textAppearanceLarge" />
120         </RelativeLayout>
121
122         <RelativeLayout
123             android:id="@+id/state_container"
124             android:layout_width="fill_parent"
125             android:layout_height="wrap_content"
126             android:layout_below="@+id/serial_container" >
127
128             <TextView
129                 android:id="@+id/state_label"
130                 android:layout_width="wrap_content"
131                 android:layout_height="wrap_content"
132                 android:text="@string/state_label" />
133
134             <TextView
135                 android:id="@+id/state_value"
136                 android:layout_width="wrap_content"
137                 android:layout_height="wrap_content"
138                 android:layout_below="@+id/state_label"
139                 android:layout_centerInParent="true"
140                 android:textAppearance="?android:attr/textAppearanceLarge"
141                 android:textSize="50dip" />
142
143         </RelativeLayout>
144
145         <RelativeLayout
146             android:id="@+id/speed_container"
147             android:layout_width="wrap_content"
148             android:layout_height="wrap_content"
149             android:layout_alignParentLeft="true"
150             android:layout_below="@+id/state_container"
151             android:layout_toLeftOf="@+id/strut" >
152
153             <TextView
154                 android:id="@+id/speed_label"
155                 android:layout_width="wrap_content"
156                 android:layout_height="wrap_content"
157                 android:text="@string/speed_label" />
158
159             <TextView
160                 android:id="@+id/speed_value"
161                 android:layout_width="wrap_content"
162                 android:layout_height="wrap_content"
163                 android:layout_alignParentRight="true"
164                 android:layout_below="@id/speed_label"
165                 android:text=""
166                 android:textAppearance="?android:attr/textAppearanceLarge" />
167
168         </RelativeLayout>
169
170         <RelativeLayout
171             android:id="@+id/accel_container"
172             android:layout_width="wrap_content"
173             android:layout_height="wrap_content"
174             android:layout_alignParentRight="true"
175             android:layout_below="@+id/state_container"
176             android:layout_toRightOf="@+id/strut" >
177
178             <TextView
179                 android:id="@+id/accel_label"
180                 android:layout_width="wrap_content"
181                 android:layout_height="wrap_content"
182                 android:text="@string/accel_label" />
183
184             <TextView
185                 android:id="@+id/accel_value"
186                 android:layout_width="wrap_content"
187                 android:layout_height="wrap_content"
188                 android:layout_alignParentRight="true"
189                 android:layout_below="@+id/accel_label"
190                 android:text=""
191                 android:textAppearance="?android:attr/textAppearanceLarge" />
192
193         </RelativeLayout>
194
195         <RelativeLayout
196             android:id="@+id/range_container"
197             android:layout_width="wrap_content"
198             android:layout_height="wrap_content"
199             android:layout_alignParentLeft="true"
200             android:layout_below="@+id/speed_container"
201             android:layout_toLeftOf="@+id/strut" >
202
203             <TextView
204                 android:id="@+id/range_label"
205                 android:layout_width="wrap_content"
206                 android:layout_height="wrap_content"
207                 android:text="@string/range_label" />
208
209             <TextView
210                 android:id="@+id/range_value"
211                 android:layout_width="wrap_content"
212                 android:layout_height="wrap_content"
213                 android:layout_alignParentRight="true"
214                 android:layout_below="@+id/range_label"
215                 android:text=""
216                 android:textAppearance="?android:attr/textAppearanceLarge" />
217
218         </RelativeLayout>
219
220         <RelativeLayout
221             android:id="@+id/height_container"
222             android:layout_width="wrap_content"
223             android:layout_height="wrap_content"
224             android:layout_alignParentRight="true"
225             android:layout_below="@id/speed_container"
226             android:layout_toRightOf="@id/strut" >
227
228             <TextView
229                 android:id="@+id/height_label"
230                 android:layout_width="wrap_content"
231                 android:layout_height="wrap_content"
232                 android:text="@string/height_label" />
233
234             <TextView
235                 android:id="@+id/height_value"
236                 android:layout_width="wrap_content"
237                 android:layout_height="wrap_content"
238                 android:layout_alignParentRight="true"
239                 android:layout_below="@+id/height_label"
240                 android:text=""
241                 android:textAppearance="?android:attr/textAppearanceLarge" />
242         </RelativeLayout>
243
244         <RelativeLayout
245             android:id="@+id/elevation_container"
246             android:layout_width="wrap_content"
247             android:layout_height="wrap_content"
248             android:layout_alignParentLeft="true"
249             android:layout_below="@id/range_container"
250             android:layout_toLeftOf="@id/strut" >
251
252             <TextView
253                 android:id="@+id/elevation_label"
254                 android:layout_width="wrap_content"
255                 android:layout_height="wrap_content"
256                 android:text="@string/elevation_label" />
257
258             <TextView
259                 android:id="@+id/elevation_value"
260                 android:layout_width="wrap_content"
261                 android:layout_height="wrap_content"
262                 android:layout_alignParentRight="true"
263                 android:layout_below="@+id/elevation_label"
264                 android:text=""
265                 android:textAppearance="?android:attr/textAppearanceLarge" />
266         </RelativeLayout>
267
268         <RelativeLayout
269             android:id="@+id/bearing_container"
270             android:layout_width="wrap_content"
271             android:layout_height="wrap_content"
272             android:layout_alignParentRight="true"
273             android:layout_below="@+id/range_container"
274             android:layout_toRightOf="@+id/strut" >
275
276             <TextView
277                 android:id="@+id/bearing_label"
278                 android:layout_width="wrap_content"
279                 android:layout_height="wrap_content"
280                 android:text="@string/bearing_label" />
281
282             <TextView
283                 android:id="@+id/bearing_value"
284                 android:layout_width="wrap_content"
285                 android:layout_height="wrap_content"
286                 android:layout_alignParentRight="true"
287                 android:layout_below="@+id/bearing_label"
288                 android:text=""
289                 android:textAppearance="?android:attr/textAppearanceLarge" />
290
291         </RelativeLayout>
292
293         <RelativeLayout
294             android:id="@+id/latitude_container"
295             android:layout_width="wrap_content"
296             android:layout_height="wrap_content"
297             android:layout_below="@+id/elevation_container" >
298
299             <TextView
300                 android:id="@+id/latitude_label"
301                 android:layout_width="wrap_content"
302                 android:layout_height="wrap_content"
303                 android:text="@string/latitude_label" />
304
305             <TextView
306                 android:id="@+id/latitude_value"
307                 android:layout_width="wrap_content"
308                 android:layout_height="wrap_content"
309                 android:layout_alignParentRight="true"
310                 android:layout_below="@+id/latitude_label"
311                 android:text=""
312                 android:textAppearance="?android:attr/textAppearanceLarge" />
313
314         </RelativeLayout>
315
316         <RelativeLayout
317             android:id="@+id/longitude_container"
318             android:layout_width="wrap_content"
319             android:layout_height="wrap_content"
320             android:layout_below="@id/latitude_container" >
321
322             <TextView
323                 android:id="@+id/longitude_label"
324                 android:layout_width="wrap_content"
325                 android:layout_height="wrap_content"
326                 android:text="@string/longitude_label" />
327
328             <TextView
329                 android:id="@+id/longitude_value"
330                 android:layout_width="wrap_content"
331                 android:layout_height="wrap_content"
332                 android:layout_alignParentRight="true"
333                 android:layout_below="@+id/longitude_label"
334                 android:text=""
335                 android:textAppearance="?android:attr/textAppearanceLarge" />
336
337         </RelativeLayout>
338
339
340         <RelativeLayout
341             android:id="@+id/text_container"
342             android:layout_width="wrap_content"
343             android:layout_height="fill_parent"
344             android:layout_below="@id/longitude_container" >
345
346                 <TextView
347                     android:id="@+id/text"
348                     android:layout_width="fill_parent"
349                     android:layout_height="fill_parent"
350                     android:layout_above="@+id/version"
351                     android:scrollbars="vertical"
352                     android:textSize="7dp"
353                     android:typeface="monospace" />
354         
355             <TextView
356                 android:id="@+id/version"
357                 android:layout_width="fill_parent"
358                 android:layout_height="10dip"
359                 android:layout_alignParentBottom="true"
360                 android:gravity="bottom|right"
361                 android:textSize="7dp"
362                 android:typeface="monospace" />
363
364         </RelativeLayout>
365
366     </RelativeLayout>