88648c3bedce81727afbd369880a89428e6e4a16
[fw/altos] / altosdroid / res / layout / tab_pad.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3      Copyright © 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
19 <LinearLayout
20     xmlns:android="http://schemas.android.com/apk/res/android"
21     android:layout_width="wrap_content"
22     android:layout_height="wrap_content">
23
24   <TableLayout
25       xmlns:android="http://schemas.android.com/apk/res/android"
26       android:stretchColumns="2,3"
27       android:layout_weight="0"
28       android:layout_width="wrap_content"
29       android:layout_height="wrap_content">
30
31     <TableRow
32         android:layout_gravity="center"
33         android:layout_weight="1"
34         android:padding="2dip"
35         android:layout_width="wrap_content"
36         android:layout_height="wrap_content">
37       
38       <ImageView
39           android:id="@+id/battery_redled"
40           android:layout_width="wrap_content"
41           android:layout_height="wrap_content"
42           android:contentDescription="@string/battery_voltage_label"
43           android:src="@drawable/grayled"
44           />
45
46       <ImageView
47           android:id="@+id/battery_greenled"
48           android:layout_width="wrap_content"
49           android:layout_height="wrap_content"
50           android:contentDescription="@string/battery_voltage_label"
51           android:src="@drawable/grayled" />
52
53       <TextView
54           android:id="@+id/battery_voltage_label"
55           android:layout_width="wrap_content"
56           android:layout_height="wrap_content"
57           android:text="@string/battery_voltage_label" />
58
59       <TextView
60           android:id="@+id/battery_voltage_value"
61           android:layout_width="wrap_content"
62           android:layout_height="wrap_content"
63           android:text=""
64           android:textAppearance="?android:attr/textAppearanceSmall"
65           />
66     </TableRow>
67
68     <TableRow
69         android:id="@+id/receiver_row"
70         android:visibility="gone"
71         android:layout_gravity="center"
72         android:layout_weight="1"
73         android:padding="2dip"
74         android:layout_width="wrap_content"
75         android:layout_height="wrap_content">
76
77       <ImageView
78           android:id="@+id/receiver_redled"
79           android:layout_width="wrap_content"
80           android:layout_height="wrap_content"
81           android:contentDescription="@string/receiver_voltage_label"
82           android:src="@drawable/grayled" />
83
84       <ImageView
85           android:id="@+id/receiver_greenled"
86           android:layout_width="wrap_content"
87           android:layout_height="wrap_content"
88           android:contentDescription="@string/receiver_voltage_label"
89           android:src="@drawable/grayled" />
90
91       <TextView
92           android:id="@+id/receiver_voltage_label"
93           android:layout_width="wrap_content"
94           android:layout_height="wrap_content"
95           android:text="@string/receiver_voltage_label" />
96
97       <TextView
98           android:id="@+id/receiver_voltage_value"
99           android:layout_width="wrap_content"
100           android:layout_height="wrap_content"
101           android:text=""
102           android:textAppearance="?android:attr/textAppearanceSmall" />
103     </TableRow>
104
105     <TableRow
106         android:layout_gravity="center"
107         android:layout_weight="1"
108         android:padding="2dip"
109         android:layout_width="wrap_content"
110         android:layout_height="wrap_content" >
111
112       <ImageView
113           android:id="@+id/logging_redled"
114           android:layout_width="wrap_content"
115           android:layout_height="wrap_content"
116           android:contentDescription="@string/logging_label"
117           android:src="@drawable/grayled" />
118
119       <ImageView
120           android:id="@+id/logging_greenled"
121           android:layout_width="wrap_content"
122           android:layout_height="wrap_content"
123           android:contentDescription="@string/logging_label"
124           android:src="@drawable/grayled" />
125
126       <TextView
127           android:id="@+id/logging_label"
128           android:layout_width="wrap_content"
129           android:layout_height="wrap_content"
130           android:text="@string/logging_label" />
131
132       <TextView
133           android:id="@+id/logging_value"
134           android:layout_width="wrap_content"
135           android:layout_height="wrap_content"
136           android:layout_below="@id/logging_label"
137           android:text=""
138           android:textAppearance="?android:attr/textAppearanceSmall" />
139     </TableRow>
140
141     <TableRow
142         android:layout_gravity="center"
143         android:layout_weight="1"
144         android:padding="2dip"
145         android:layout_width="wrap_content"
146         android:layout_height="wrap_content" >
147
148       <ImageView
149           android:id="@+id/gps_locked_redled"
150           android:layout_width="wrap_content"
151           android:layout_height="wrap_content"
152           android:contentDescription="@string/gps_locked_label"
153           android:src="@drawable/grayled" />
154
155       <ImageView
156           android:id="@+id/gps_locked_greenled"
157           android:layout_width="wrap_content"
158           android:layout_height="wrap_content"
159           android:contentDescription="@string/gps_locked_label"
160           android:src="@drawable/grayled" />
161
162       <TextView
163           android:id="@+id/gps_locked_label"
164           android:layout_width="wrap_content"
165           android:layout_height="wrap_content"
166           android:text="@string/gps_locked_label" />
167
168       <TextView
169           android:id="@+id/gps_locked_value"
170           android:layout_width="wrap_content"
171           android:layout_height="wrap_content"
172           android:layout_below="@id/gps_locked_label"
173           android:text=""
174           android:textAppearance="?android:attr/textAppearanceSmall" />
175     </TableRow>
176
177     <TableRow
178         android:layout_gravity="center"
179         android:layout_weight="1"
180         android:padding="2dip"
181         android:layout_width="wrap_content"
182         android:layout_height="wrap_content" >
183
184       <ImageView
185           android:id="@+id/gps_ready_redled"
186           android:layout_width="wrap_content"
187           android:layout_height="wrap_content"
188           android:contentDescription="@string/gps_ready_label"
189           android:src="@drawable/grayled" />
190
191       <ImageView
192           android:id="@+id/gps_ready_greenled"
193           android:layout_width="wrap_content"
194           android:layout_height="wrap_content"
195           android:contentDescription="@string/gps_ready_label"
196           android:src="@drawable/grayled" />
197
198       <TextView
199           android:id="@+id/gps_ready_label"
200           android:layout_width="wrap_content"
201           android:layout_height="wrap_content"
202           android:text="@string/gps_ready_label" />
203
204       <TextView
205           android:id="@+id/gps_ready_value"
206           android:layout_width="wrap_content"
207           android:layout_height="wrap_content"
208           android:layout_below="@id/gps_ready_label"
209           android:text=""
210           android:textAppearance="?android:attr/textAppearanceSmall" />
211     </TableRow>
212
213     <TableRow
214         android:id="@+id/apogee_row"
215         android:visibility="gone"
216         android:layout_gravity="center"
217         android:layout_weight="1"
218         android:padding="2dip"
219         android:layout_width="wrap_content"
220         android:layout_height="wrap_content">
221
222       <ImageView
223           android:id="@+id/apogee_redled"
224           android:layout_width="wrap_content"
225           android:layout_height="wrap_content"
226           android:contentDescription="@string/apogee_voltage_label"
227           android:src="@drawable/grayled" />
228
229       <ImageView
230           android:id="@+id/apogee_greenled"
231           android:layout_width="wrap_content"
232           android:layout_height="wrap_content"
233           android:contentDescription="@string/apogee_voltage_label"
234           android:src="@drawable/grayled" />
235
236       <TextView
237           android:id="@+id/apogee_voltage_label"
238           android:layout_width="wrap_content"
239           android:layout_height="wrap_content"
240           android:text="@string/apogee_voltage_label" />
241
242       <TextView
243           android:id="@+id/apogee_voltage_value"
244           android:layout_width="wrap_content"
245           android:layout_height="wrap_content"
246           android:text=""
247           android:textAppearance="?android:attr/textAppearanceSmall" />
248     </TableRow>
249
250     <TableRow
251         android:id="@+id/main_row"
252         android:visibility="gone"
253         android:layout_gravity="center"
254         android:layout_weight="1"
255         android:padding="2dip"
256         android:layout_width="wrap_content"
257         android:layout_height="wrap_content" >
258
259       <ImageView
260           android:id="@+id/main_redled"
261           android:layout_width="wrap_content"
262           android:layout_height="wrap_content"
263           android:contentDescription="@string/main_voltage_label"
264           android:src="@drawable/grayled" />
265
266       <ImageView
267           android:id="@+id/main_greenled"
268           android:layout_width="wrap_content"
269           android:layout_height="wrap_content"
270           android:contentDescription="@string/main_voltage_label"
271           android:src="@drawable/grayled" />
272
273       <TextView
274           android:id="@+id/main_voltage_label"
275           android:layout_width="wrap_content"
276           android:layout_height="wrap_content"
277           android:text="@string/main_voltage_label" />
278
279       <TextView
280           android:id="@+id/main_voltage_value"
281           android:layout_width="wrap_content"
282           android:layout_height="wrap_content"
283           android:text=""
284           android:textAppearance="?android:attr/textAppearanceSmall" />
285     </TableRow>
286
287     <TableRow
288         android:id="@+id/ignite_a_row"
289         android:visibility="gone"
290         android:layout_gravity="center"
291         android:layout_weight="1"
292         android:padding="2dip"
293         android:layout_width="wrap_content"
294         android:layout_height="wrap_content" >
295
296       <ImageView
297           android:id="@+id/ignite_a_redled"
298           android:layout_width="wrap_content"
299           android:layout_height="wrap_content"
300           android:contentDescription="@string/ignite_a_voltage_label"
301           android:src="@drawable/grayled" />
302
303       <ImageView
304           android:id="@+id/ignite_a_greenled"
305           android:layout_width="wrap_content"
306           android:layout_height="wrap_content"
307           android:contentDescription="@string/ignite_a_voltage_label"
308           android:src="@drawable/grayled" />
309
310       <TextView
311           android:id="@+id/ignite_a_voltage_label"
312           android:layout_width="wrap_content"
313           android:layout_height="wrap_content"
314           android:text="@string/ignite_a_voltage_label" />
315
316       <TextView
317           android:id="@+id/ignite_a_voltage_value"
318           android:layout_width="wrap_content"
319           android:layout_height="wrap_content"
320           android:text=""
321           android:textAppearance="?android:attr/textAppearanceSmall" />
322     </TableRow>
323
324     <TableRow
325         android:id="@+id/ignite_b_row"
326         android:visibility="gone"
327         android:layout_gravity="center"
328         android:layout_weight="1"
329         android:padding="2dip"
330         android:layout_width="wrap_content"
331         android:layout_height="wrap_content" >
332
333       <ImageView
334           android:id="@+id/ignite_b_redled"
335           android:layout_width="wrap_content"
336           android:layout_height="wrap_content"
337           android:contentDescription="@string/ignite_b_voltage_label"
338           android:src="@drawable/grayled" />
339
340       <ImageView
341           android:id="@+id/ignite_b_greenled"
342           android:layout_width="wrap_content"
343           android:layout_height="wrap_content"
344           android:contentDescription="@string/ignite_b_voltage_label"
345           android:src="@drawable/grayled" />
346
347       <TextView
348           android:id="@+id/ignite_b_voltage_label"
349           android:layout_width="wrap_content"
350           android:layout_height="wrap_content"
351           android:text="@string/ignite_b_voltage_label" />
352
353       <TextView
354           android:id="@+id/ignite_b_voltage_value"
355           android:layout_width="wrap_content"
356           android:layout_height="wrap_content"
357           android:text=""
358           android:textAppearance="?android:attr/textAppearanceSmall" />
359     </TableRow>
360
361     <TableRow
362         android:id="@+id/ignite_c_row"
363         android:visibility="gone"
364         android:layout_gravity="center"
365         android:layout_weight="1"
366         android:padding="2dip"
367         android:layout_width="wrap_content"
368         android:layout_height="wrap_content" >
369
370       <ImageView
371           android:id="@+id/ignite_c_redled"
372           android:layout_width="wrap_content"
373           android:layout_height="wrap_content"
374           android:contentDescription="@string/ignite_c_voltage_label"
375           android:src="@drawable/grayled" />
376
377       <ImageView
378           android:id="@+id/ignite_c_greenled"
379           android:layout_width="wrap_content"
380           android:layout_height="wrap_content"
381           android:contentDescription="@string/ignite_c_voltage_label"
382           android:src="@drawable/grayled" />
383
384       <TextView
385           android:id="@+id/ignite_c_voltage_label"
386           android:layout_width="wrap_content"
387           android:layout_height="wrap_content"
388           android:text="@string/ignite_c_voltage_label" />
389
390       <TextView
391           android:id="@+id/ignite_c_voltage_value"
392           android:layout_width="wrap_content"
393           android:layout_height="wrap_content"
394           android:text=""
395           android:textAppearance="?android:attr/textAppearanceSmall" />
396     </TableRow>
397
398     <TableRow
399         android:id="@+id/ignite_d_row"
400         android:visibility="gone"
401         android:layout_gravity="center"
402         android:layout_weight="1"
403         android:padding="2dip"
404         android:layout_width="wrap_content"
405         android:layout_height="wrap_content" >
406
407       <ImageView
408           android:id="@+id/ignite_d_redled"
409           android:layout_width="wrap_content"
410           android:layout_height="wrap_content"
411           android:contentDescription="@string/ignite_d_voltage_label"
412           android:src="@drawable/grayled" />
413
414       <ImageView
415           android:id="@+id/ignite_d_greenled"
416           android:layout_width="wrap_content"
417           android:layout_height="wrap_content"
418           android:contentDescription="@string/ignite_d_voltage_label"
419           android:src="@drawable/grayled" />
420
421       <TextView
422           android:id="@+id/ignite_d_voltage_label"
423           android:layout_width="wrap_content"
424           android:layout_height="wrap_content"
425           android:text="@string/ignite_d_voltage_label" />
426
427       <TextView
428           android:id="@+id/ignite_d_voltage_value"
429           android:layout_width="wrap_content"
430           android:layout_height="wrap_content"
431           android:text=""
432           android:textAppearance="?android:attr/textAppearanceSmall" />
433     </TableRow>
434
435     <TableRow
436         android:padding="2dip"
437         android:layout_width="wrap_content"
438         android:layout_height="wrap_content">
439
440       <TextView
441           android:id="@+id/receiver_lat_label"
442           android:layout_width="wrap_content"
443           android:layout_height="wrap_content"
444           android:layout_column="2"
445           android:text="@string/receiver_latitude_label" />
446
447       <TextView
448           android:id="@+id/receiver_lat_value"
449           android:layout_width="wrap_content"
450           android:layout_height="wrap_content"
451           android:text=""
452           android:textAppearance="?android:attr/textAppearanceSmall" />
453     </TableRow>
454
455     <TableRow
456         android:padding="2dip"
457         android:layout_width="wrap_content"
458         android:layout_height="wrap_content">
459
460       <TextView
461           android:id="@+id/receiver_lon_label"
462           android:layout_width="wrap_content"
463           android:layout_height="wrap_content"
464           android:layout_column="2"
465           android:text="@string/receiver_longitude_label" />
466
467       <TextView
468           android:id="@+id/receiver_lon_value"
469           android:layout_width="wrap_content"
470           android:layout_height="wrap_content"
471           android:text=""
472           android:textAppearance="?android:attr/textAppearanceSmall" />
473     </TableRow>
474
475     <TableRow
476         android:padding="2dip"
477         android:layout_width="wrap_content"
478         android:layout_height="wrap_content">
479
480       <TextView
481           android:id="@+id/receiver_alt_label"
482           android:layout_width="wrap_content"
483           android:layout_height="wrap_content"
484           android:layout_column="2"
485           android:text="@string/receiver_altitude_label" />
486
487       <TextView
488           android:id="@+id/receiver_alt_value"
489           android:layout_width="wrap_content"
490           android:layout_height="wrap_content"
491           android:text=""
492           android:textAppearance="?android:attr/textAppearanceSmall" />
493     </TableRow>
494   </TableLayout>
495 </LinearLayout>