981f45a880bc7901868618054b07f4aa4e35d365
[fw/altos] / altosdroid / app / src / main / 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; either version 2 of the License, or
8     (at your option) any later version.
9
10      This program is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      General Public License for more details.
14
15      You should have received a copy of the GNU General Public License along
16      with this program; if not, write to the Free Software Foundation, Inc.,
17      59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
18 -->
19
20 <LinearLayout
21     xmlns:android="http://schemas.android.com/apk/res/android"
22     android:layout_width="wrap_content"
23     android:layout_height="wrap_content">
24
25   <TableLayout
26       xmlns:android="http://schemas.android.com/apk/res/android"
27       android:stretchColumns="2,3"
28       android:layout_weight="0"
29       android:layout_width="wrap_content"
30       android:layout_height="wrap_content">
31
32     <TableRow
33         android:layout_gravity="center"
34         android:layout_weight="1"
35         android:padding="2dip"
36         android:layout_width="wrap_content"
37         android:layout_height="wrap_content">
38       
39       <ImageView
40           android:id="@+id/battery_redled"
41           android:layout_width="match_parent"
42           android:layout_height="match_parent"
43           android:scaleType="centerInside"
44           android:paddingRight="5dp"
45           android:contentDescription="@string/battery_voltage_label"
46           android:src="@drawable/grayled"
47           />
48
49       <ImageView
50           android:id="@+id/battery_greenled"
51           android:layout_width="match_parent"
52           android:layout_height="match_parent"
53           android:scaleType="centerInside"
54           android:contentDescription="@string/battery_voltage_label"
55           android:paddingRight="5dp"
56           android:src="@drawable/grayled" />
57
58       <TextView
59           android:id="@+id/battery_voltage_label"
60           android:layout_width="wrap_content"
61           android:layout_height="wrap_content"
62           android:text="@string/battery_voltage_label" />
63
64       <TextView
65           android:id="@+id/battery_voltage_value"
66           android:layout_width="wrap_content"
67           android:layout_height="wrap_content"
68           android:text=""
69           android:textAppearance="?android:attr/textAppearanceSmall"
70           />
71     </TableRow>
72
73     <TableRow
74         android:id="@+id/receiver_row"
75         android:visibility="gone"
76         android:layout_gravity="center"
77         android:layout_weight="1"
78         android:padding="2dip"
79         android:layout_width="wrap_content"
80         android:layout_height="wrap_content">
81
82       <ImageView
83           android:id="@+id/receiver_redled"
84           android:layout_width="match_parent"
85           android:layout_height="match_parent"
86           android:scaleType="centerInside"
87           android:paddingRight="5dp"
88           android:contentDescription="@string/receiver_voltage_label"
89           android:src="@drawable/grayled" />
90
91       <ImageView
92           android:id="@+id/receiver_greenled"
93           android:layout_width="match_parent"
94           android:layout_height="match_parent"
95           android:scaleType="centerInside"
96           android:paddingRight="5dp"
97           android:contentDescription="@string/receiver_voltage_label"
98           android:src="@drawable/grayled" />
99
100       <TextView
101           android:id="@+id/receiver_voltage_label"
102           android:layout_width="wrap_content"
103           android:layout_height="wrap_content"
104           android:text="@string/receiver_voltage_label" />
105
106       <TextView
107           android:id="@+id/receiver_voltage_value"
108           android:layout_width="wrap_content"
109           android:layout_height="wrap_content"
110           android:text=""
111           android:textAppearance="?android:attr/textAppearanceSmall" />
112     </TableRow>
113
114     <TableRow
115         android:layout_gravity="center"
116         android:layout_weight="1"
117         android:padding="2dip"
118         android:layout_width="wrap_content"
119         android:layout_height="wrap_content" >
120
121       <ImageView
122           android:id="@+id/logging_redled"
123           android:layout_width="match_parent"
124           android:layout_height="match_parent"
125           android:scaleType="centerInside"
126           android:paddingRight="5dp"
127           android:contentDescription="@string/logging_label"
128           android:src="@drawable/grayled" />
129
130       <ImageView
131           android:id="@+id/logging_greenled"
132           android:layout_width="match_parent"
133           android:layout_height="match_parent"
134           android:scaleType="centerInside"
135           android:paddingRight="5dp"
136           android:contentDescription="@string/logging_label"
137           android:src="@drawable/grayled" />
138
139       <TextView
140           android:id="@+id/logging_label"
141           android:layout_width="wrap_content"
142           android:layout_height="wrap_content"
143           android:text="@string/logging_label" />
144
145       <TextView
146           android:id="@+id/logging_value"
147           android:layout_width="wrap_content"
148           android:layout_height="wrap_content"
149           android:layout_below="@id/logging_label"
150           android:text=""
151           android:textAppearance="?android:attr/textAppearanceSmall" />
152     </TableRow>
153
154     <TableRow
155         android:layout_gravity="center"
156         android:layout_weight="1"
157         android:padding="2dip"
158         android:layout_width="wrap_content"
159         android:layout_height="wrap_content" >
160
161       <ImageView
162           android:id="@+id/gps_locked_redled"
163           android:layout_width="match_parent"
164           android:layout_height="match_parent"
165           android:scaleType="centerInside"
166           android:paddingRight="5dp"
167           android:contentDescription="@string/gps_locked_label"
168           android:src="@drawable/grayled" />
169
170       <ImageView
171           android:id="@+id/gps_locked_greenled"
172           android:layout_width="match_parent"
173           android:layout_height="match_parent"
174           android:scaleType="centerInside"
175           android:paddingRight="5dp"
176           android:contentDescription="@string/gps_locked_label"
177           android:src="@drawable/grayled" />
178
179       <TextView
180           android:id="@+id/gps_locked_label"
181           android:layout_width="wrap_content"
182           android:layout_height="wrap_content"
183           android:text="@string/gps_locked_label" />
184
185       <TextView
186           android:id="@+id/gps_locked_value"
187           android:layout_width="wrap_content"
188           android:layout_height="wrap_content"
189           android:layout_below="@id/gps_locked_label"
190           android:text=""
191           android:textAppearance="?android:attr/textAppearanceSmall" />
192     </TableRow>
193
194     <TableRow
195         android:layout_gravity="center"
196         android:layout_weight="1"
197         android:padding="2dip"
198         android:layout_width="wrap_content"
199         android:layout_height="wrap_content" >
200
201       <ImageView
202           android:id="@+id/gps_ready_redled"
203           android:layout_width="match_parent"
204           android:layout_height="match_parent"
205           android:scaleType="centerInside"
206           android:paddingRight="5dp"
207           android:contentDescription="@string/gps_ready_label"
208           android:src="@drawable/grayled" />
209
210       <ImageView
211           android:id="@+id/gps_ready_greenled"
212           android:layout_width="match_parent"
213           android:layout_height="match_parent"
214           android:scaleType="centerInside"
215           android:paddingRight="5dp"
216           android:contentDescription="@string/gps_ready_label"
217           android:src="@drawable/grayled" />
218
219       <TextView
220           android:id="@+id/gps_ready_label"
221           android:layout_width="wrap_content"
222           android:layout_height="wrap_content"
223           android:text="@string/gps_ready_label" />
224
225       <TextView
226           android:id="@+id/gps_ready_value"
227           android:layout_width="wrap_content"
228           android:layout_height="wrap_content"
229           android:layout_below="@id/gps_ready_label"
230           android:text=""
231           android:textAppearance="?android:attr/textAppearanceSmall" />
232     </TableRow>
233
234     <TableRow
235         android:id="@+id/apogee_row"
236         android:visibility="gone"
237         android:layout_gravity="center"
238         android:layout_weight="1"
239         android:padding="2dip"
240         android:layout_width="wrap_content"
241         android:layout_height="wrap_content">
242
243       <ImageView
244           android:id="@+id/apogee_redled"
245           android:layout_width="match_parent"
246           android:layout_height="match_parent"
247           android:scaleType="centerInside"
248           android:paddingRight="5dp"
249           android:contentDescription="@string/apogee_voltage_label"
250           android:src="@drawable/grayled" />
251
252       <ImageView
253           android:id="@+id/apogee_greenled"
254           android:layout_width="match_parent"
255           android:layout_height="match_parent"
256           android:scaleType="centerInside"
257           android:paddingRight="5dp"
258           android:contentDescription="@string/apogee_voltage_label"
259           android:src="@drawable/grayled" />
260
261       <TextView
262           android:id="@+id/apogee_voltage_label"
263           android:layout_width="wrap_content"
264           android:layout_height="wrap_content"
265           android:text="@string/apogee_voltage_label" />
266
267       <TextView
268           android:id="@+id/apogee_voltage_value"
269           android:layout_width="wrap_content"
270           android:layout_height="wrap_content"
271           android:text=""
272           android:textAppearance="?android:attr/textAppearanceSmall" />
273     </TableRow>
274
275     <TableRow
276         android:id="@+id/main_row"
277         android:visibility="gone"
278         android:layout_gravity="center"
279         android:layout_weight="1"
280         android:padding="2dip"
281         android:layout_width="wrap_content"
282         android:layout_height="wrap_content" >
283
284       <ImageView
285           android:id="@+id/main_redled"
286           android:layout_width="match_parent"
287           android:layout_height="match_parent"
288           android:scaleType="centerInside"
289           android:paddingRight="5dp"
290           android:contentDescription="@string/main_voltage_label"
291           android:src="@drawable/grayled" />
292
293       <ImageView
294           android:id="@+id/main_greenled"
295           android:layout_width="match_parent"
296           android:layout_height="match_parent"
297           android:scaleType="centerInside"
298           android:paddingRight="5dp"
299           android:contentDescription="@string/main_voltage_label"
300           android:src="@drawable/grayled" />
301
302       <TextView
303           android:id="@+id/main_voltage_label"
304           android:layout_width="wrap_content"
305           android:layout_height="wrap_content"
306           android:text="@string/main_voltage_label" />
307
308       <TextView
309           android:id="@+id/main_voltage_value"
310           android:layout_width="wrap_content"
311           android:layout_height="wrap_content"
312           android:text=""
313           android:textAppearance="?android:attr/textAppearanceSmall" />
314     </TableRow>
315
316     <TableRow
317         android:id="@+id/ignite_a_row"
318         android:visibility="gone"
319         android:layout_gravity="center"
320         android:layout_weight="1"
321         android:padding="2dip"
322         android:layout_width="wrap_content"
323         android:layout_height="wrap_content" >
324
325       <ImageView
326           android:id="@+id/ignite_a_redled"
327           android:layout_width="match_parent"
328           android:layout_height="match_parent"
329           android:scaleType="centerInside"
330           android:paddingRight="5dp"
331           android:contentDescription="@string/ignite_a_voltage_label"
332           android:src="@drawable/grayled" />
333
334       <ImageView
335           android:id="@+id/ignite_a_greenled"
336           android:layout_width="match_parent"
337           android:layout_height="match_parent"
338           android:scaleType="centerInside"
339           android:paddingRight="5dp"
340           android:contentDescription="@string/ignite_a_voltage_label"
341           android:src="@drawable/grayled" />
342
343       <TextView
344           android:id="@+id/ignite_a_voltage_label"
345           android:layout_width="wrap_content"
346           android:layout_height="wrap_content"
347           android:text="@string/ignite_a_voltage_label" />
348
349       <TextView
350           android:id="@+id/ignite_a_voltage_value"
351           android:layout_width="wrap_content"
352           android:layout_height="wrap_content"
353           android:text=""
354           android:textAppearance="?android:attr/textAppearanceSmall" />
355     </TableRow>
356
357     <TableRow
358         android:id="@+id/ignite_b_row"
359         android:visibility="gone"
360         android:layout_gravity="center"
361         android:layout_weight="1"
362         android:padding="2dip"
363         android:layout_width="wrap_content"
364         android:layout_height="wrap_content" >
365
366       <ImageView
367           android:id="@+id/ignite_b_redled"
368           android:layout_width="match_parent"
369           android:layout_height="match_parent"
370           android:scaleType="centerInside"
371           android:paddingRight="5dp"
372           android:contentDescription="@string/ignite_b_voltage_label"
373           android:src="@drawable/grayled" />
374
375       <ImageView
376           android:id="@+id/ignite_b_greenled"
377           android:layout_width="match_parent"
378           android:layout_height="match_parent"
379           android:scaleType="centerInside"
380           android:paddingRight="5dp"
381           android:contentDescription="@string/ignite_b_voltage_label"
382           android:src="@drawable/grayled" />
383
384       <TextView
385           android:id="@+id/ignite_b_voltage_label"
386           android:layout_width="wrap_content"
387           android:layout_height="wrap_content"
388           android:text="@string/ignite_b_voltage_label" />
389
390       <TextView
391           android:id="@+id/ignite_b_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_c_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_c_redled"
409           android:layout_width="match_parent"
410           android:layout_height="match_parent"
411           android:scaleType="centerInside"
412           android:paddingRight="5dp"
413           android:contentDescription="@string/ignite_c_voltage_label"
414           android:src="@drawable/grayled" />
415
416       <ImageView
417           android:id="@+id/ignite_c_greenled"
418           android:layout_width="match_parent"
419           android:layout_height="match_parent"
420           android:scaleType="centerInside"
421           android:paddingRight="5dp"
422           android:contentDescription="@string/ignite_c_voltage_label"
423           android:src="@drawable/grayled" />
424
425       <TextView
426           android:id="@+id/ignite_c_voltage_label"
427           android:layout_width="wrap_content"
428           android:layout_height="wrap_content"
429           android:text="@string/ignite_c_voltage_label" />
430
431       <TextView
432           android:id="@+id/ignite_c_voltage_value"
433           android:layout_width="wrap_content"
434           android:layout_height="wrap_content"
435           android:text=""
436           android:textAppearance="?android:attr/textAppearanceSmall" />
437     </TableRow>
438
439     <TableRow
440         android:id="@+id/ignite_d_row"
441         android:visibility="gone"
442         android:layout_gravity="center"
443         android:layout_weight="1"
444         android:padding="2dip"
445         android:layout_width="wrap_content"
446         android:layout_height="wrap_content" >
447
448       <ImageView
449           android:id="@+id/ignite_d_redled"
450           android:layout_width="match_parent"
451           android:layout_height="match_parent"
452           android:scaleType="centerInside"
453           android:paddingRight="5dp"
454           android:contentDescription="@string/ignite_d_voltage_label"
455           android:src="@drawable/grayled" />
456
457       <ImageView
458           android:id="@+id/ignite_d_greenled"
459           android:layout_width="match_parent"
460           android:layout_height="match_parent"
461           android:scaleType="centerInside"
462           android:paddingRight="5dp"
463           android:contentDescription="@string/ignite_d_voltage_label"
464           android:src="@drawable/grayled" />
465
466       <TextView
467           android:id="@+id/ignite_d_voltage_label"
468           android:layout_width="wrap_content"
469           android:layout_height="wrap_content"
470           android:text="@string/ignite_d_voltage_label" />
471
472       <TextView
473           android:id="@+id/ignite_d_voltage_value"
474           android:layout_width="wrap_content"
475           android:layout_height="wrap_content"
476           android:text=""
477           android:textAppearance="?android:attr/textAppearanceSmall" />
478     </TableRow>
479
480     <TableRow
481         android:padding="2dip"
482         android:layout_width="wrap_content"
483         android:layout_height="wrap_content">
484
485       <TextView
486           android:id="@+id/receiver_lat_label"
487           android:layout_width="wrap_content"
488           android:layout_height="wrap_content"
489           android:layout_column="2"
490           android:text="@string/receiver_latitude_label" />
491
492       <TextView
493           android:id="@+id/receiver_lat_value"
494           android:layout_width="wrap_content"
495           android:layout_height="wrap_content"
496           android:text=""
497           android:textAppearance="?android:attr/textAppearanceSmall" />
498     </TableRow>
499
500     <TableRow
501         android:padding="2dip"
502         android:layout_width="wrap_content"
503         android:layout_height="wrap_content">
504
505       <TextView
506           android:id="@+id/receiver_lon_label"
507           android:layout_width="wrap_content"
508           android:layout_height="wrap_content"
509           android:layout_column="2"
510           android:text="@string/receiver_longitude_label" />
511
512       <TextView
513           android:id="@+id/receiver_lon_value"
514           android:layout_width="wrap_content"
515           android:layout_height="wrap_content"
516           android:text=""
517           android:textAppearance="?android:attr/textAppearanceSmall" />
518     </TableRow>
519
520     <TableRow
521         android:padding="2dip"
522         android:layout_width="wrap_content"
523         android:layout_height="wrap_content">
524
525       <TextView
526           android:id="@+id/receiver_alt_label"
527           android:layout_width="wrap_content"
528           android:layout_height="wrap_content"
529           android:layout_column="2"
530           android:text="@string/receiver_altitude_label" />
531
532       <TextView
533           android:id="@+id/receiver_alt_value"
534           android:layout_width="wrap_content"
535           android:layout_height="wrap_content"
536           android:text=""
537           android:textAppearance="?android:attr/textAppearanceSmall" />
538     </TableRow>
539   </TableLayout>
540 </LinearLayout>