db65527060206374193476c3a24860da36a38e6f
[fw/altos] / altosdroid / app / src / main / res / layout / tab_flight.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 <LinearLayout
20     xmlns:android="http://schemas.android.com/apk/res/android"
21     android:layout_width="fill_parent"
22     android:layout_height="wrap_content"
23     android:orientation="vertical" >
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
40           <TextView
41               android:id="@+id/speed_label"
42               android:layout_width="wrap_content"
43               android:layout_height="wrap_content"
44               android:layout_column="2"
45               android:text="@string/speed_label" />
46
47           <TextView
48               android:id="@+id/speed_value"
49               android:layout_width="wrap_content"
50               android:layout_height="wrap_content"
51               android:text=""
52               android:textAppearance="?android:attr/textAppearanceSmall" />
53       </TableRow>
54
55       <TableRow
56           android:layout_weight="1"
57           android:padding="2dip"
58           android:layout_width="wrap_content"
59           android:layout_height="wrap_content"
60           >
61
62           <TextView
63               android:id="@+id/height_label"
64               android:layout_width="wrap_content"
65               android:layout_height="wrap_content"
66               android:layout_column="2"
67               android:text="@string/height_label" />
68
69           <TextView
70               android:id="@+id/height_value"
71               android:layout_width="wrap_content"
72               android:layout_height="wrap_content"
73               android:layout_alignParentRight="true"
74               android:text=""
75               android:textAppearance="?android:attr/textAppearanceSmall" />
76       </TableRow>
77
78       <TableRow
79           android:layout_weight="1"
80           android:padding="2dip"
81           android:layout_width="wrap_content"
82           android:layout_height="wrap_content"
83           >
84
85           <TextView
86               android:id="@+id/altitude_label"
87               android:layout_width="wrap_content"
88               android:layout_height="wrap_content"
89               android:layout_column="2"
90               android:text="@string/altitude_label" />
91
92           <TextView
93               android:id="@+id/altitude_value"
94               android:layout_width="wrap_content"
95               android:layout_height="wrap_content"
96               android:layout_alignParentRight="true"
97               android:text=""
98               android:textAppearance="?android:attr/textAppearanceSmall" />
99       </TableRow>
100
101       <TableRow
102           android:layout_gravity="center"
103           android:layout_weight="1"
104           android:padding="2dip"
105           android:layout_width="wrap_content"
106           android:layout_height="wrap_content"
107           >
108
109           <TextView
110               android:id="@+id/max_speed_label"
111               android:layout_width="wrap_content"
112               android:layout_height="wrap_content"
113               android:layout_column="2"
114               android:text="@string/max_speed_label" />
115
116           <TextView
117               android:id="@+id/max_speed_value"
118               android:layout_width="wrap_content"
119               android:layout_height="wrap_content"
120               android:text="" />
121       </TableRow>
122
123       <TableRow
124           android:layout_gravity="center"
125           android:layout_weight="1"
126           android:padding="2dip"
127           android:layout_width="wrap_content"
128           android:layout_height="wrap_content"
129           >
130
131           <TextView
132               android:id="@+id/max_height_label"
133               android:layout_width="wrap_content"
134               android:layout_height="wrap_content"
135               android:layout_column="2"
136               android:text="@string/max_height_label" />
137
138           <TextView
139               android:id="@+id/max_height_value"
140               android:layout_width="wrap_content"
141               android:layout_height="wrap_content"
142               android:text="" />
143       </TableRow>
144
145       <TableRow
146           android:layout_gravity="center"
147           android:layout_weight="1"
148           android:padding="2dip"
149           android:layout_width="wrap_content"
150           android:layout_height="wrap_content"
151           >
152
153           <TextView
154               android:id="@+id/max_altitude_label"
155               android:layout_width="wrap_content"
156               android:layout_height="wrap_content"
157               android:layout_column="2"
158               android:text="@string/max_altitude_label" />
159
160           <TextView
161               android:id="@+id/max_altitude_value"
162               android:layout_width="wrap_content"
163               android:layout_height="wrap_content"
164               android:text="" />
165       </TableRow>
166
167       <TableRow
168           android:layout_weight="1"
169           android:padding="2dip"
170           android:layout_width="wrap_content"
171           android:layout_height="wrap_content"
172           >
173
174           <TextView
175               android:id="@+id/elevation_label"
176               android:layout_width="wrap_content"
177               android:layout_height="wrap_content"
178               android:layout_column="2"
179               android:text="@string/elevation_label" />
180
181           <TextView
182               android:id="@+id/elevation_value"
183               android:layout_width="wrap_content"
184               android:layout_height="wrap_content"
185               android:text="" />
186       </TableRow>
187
188       <TableRow
189           android:layout_weight="1"
190           android:padding="2dip"
191           android:layout_width="wrap_content"
192           android:layout_height="wrap_content"
193           >
194
195           <TextView
196               android:id="@+id/range_label"
197               android:layout_width="wrap_content"
198               android:layout_height="wrap_content"
199               android:layout_column="2"
200               android:text="@string/range_label" />
201
202           <TextView
203               android:id="@+id/range_value"
204               android:layout_width="wrap_content"
205               android:layout_height="wrap_content"
206               android:layout_alignParentRight="true"
207               android:text=""
208               android:textAppearance="?android:attr/textAppearanceSmall" />
209       </TableRow>
210
211       <TableRow
212           android:layout_weight="1"
213           android:padding="2dip"
214           android:layout_width="wrap_content"
215           android:layout_height="wrap_content"
216           >
217
218           <TextView
219               android:id="@+id/bearing_label"
220               android:layout_width="wrap_content"
221               android:layout_height="wrap_content"
222               android:layout_column="2"
223               android:text="@string/bearing_label" />
224
225           <TextView
226               android:id="@+id/bearing_value"
227               android:layout_width="wrap_content"
228               android:layout_height="wrap_content"
229               android:layout_alignParentRight="true"
230               android:text=""
231               android:textAppearance="?android:attr/textAppearanceSmall" />
232       </TableRow>
233
234       <TableRow
235           android:layout_weight="1"
236           android:padding="2dip"
237           android:layout_width="wrap_content"
238           android:layout_height="wrap_content"
239           >
240
241           <TextView
242               android:id="@+id/compass_value"
243               android:layout_width="wrap_content"
244               android:layout_height="wrap_content"
245               android:layout_alignParentRight="true"
246               android:layout_column="3"
247               android:text=""
248               android:textAppearance="?android:attr/textAppearanceSmall" />
249       </TableRow>
250
251       <TableRow
252           android:layout_weight="1"
253           android:padding="2dip"
254           android:layout_width="wrap_content"
255           android:layout_height="wrap_content"
256           >
257
258           <TextView
259               android:id="@+id/distance_label"
260               android:layout_width="wrap_content"
261               android:layout_height="wrap_content"
262               android:layout_column="2"
263               android:text="@string/gnd_distance_label" />
264
265           <TextView
266               android:id="@+id/distance_value"
267               android:layout_width="wrap_content"
268               android:layout_height="wrap_content"
269               android:layout_alignParentRight="true"
270               android:text=""
271               android:textAppearance="?android:attr/textAppearanceSmall" />
272       </TableRow>
273
274
275       <TableRow
276           android:layout_weight="1"
277           android:padding="2dip"
278           android:layout_width="wrap_content"
279           android:layout_height="wrap_content"
280           >
281
282           <TextView
283               android:id="@+id/lat_label"
284               android:layout_width="wrap_content"
285               android:layout_height="wrap_content"
286               android:layout_column="2"
287               android:text="@string/latitude_label" />
288
289           <TextView
290               android:id="@+id/lat_value"
291               android:layout_width="wrap_content"
292               android:layout_height="wrap_content"
293               android:layout_alignParentRight="true"
294               android:text=""
295               android:textAppearance="?android:attr/textAppearanceSmall" />
296       </TableRow>
297
298       <TableRow
299           android:layout_weight="1"
300           android:padding="2dip"
301           android:layout_width="wrap_content"
302           android:layout_height="wrap_content"
303           >
304
305           <TextView
306               android:id="@+id/lon_label"
307               android:layout_width="wrap_content"
308               android:layout_height="wrap_content"
309               android:layout_column="2"
310               android:text="@string/longitude_label" />
311
312           <TextView
313               android:id="@+id/lon_value"
314               android:layout_width="wrap_content"
315               android:layout_height="wrap_content"
316               android:layout_alignParentRight="true"
317               android:text=""
318               android:textAppearance="?android:attr/textAppearanceSmall" />
319       </TableRow>
320
321       <TableRow
322           android:id="@+id/apogee_view"
323           android:visibility="gone"
324           android:layout_weight="1"
325           android:padding="2dip"
326           android:layout_width="wrap_content"
327           android:layout_height="wrap_content"
328           >
329
330           <ImageView
331               android:id="@+id/apogee_redled"
332               android:layout_width="match_parent"
333               android:layout_height="match_parent"
334               android:scaleType="centerInside"
335               android:contentDescription="@string/apogee_voltage_label"
336               android:src="@drawable/grayled" />
337
338           <ImageView
339               android:id="@+id/apogee_greenled"
340               android:layout_width="match_parent"
341               android:layout_height="match_parent"
342               android:scaleType="centerInside"
343               android:contentDescription="@string/apogee_voltage_label"
344               android:src="@drawable/grayled" />
345
346           <TextView
347               android:id="@+id/apogee_voltage_label"
348               android:layout_width="wrap_content"
349               android:layout_height="wrap_content"
350               android:layout_toRightOf="@id/apogee_greenled"
351               android:text="@string/apogee_voltage_label" />
352
353           <TextView
354               android:id="@+id/apogee_voltage_value"
355               android:layout_width="wrap_content"
356               android:layout_height="wrap_content"
357               android:layout_alignParentRight="true"
358               android:text=""
359               android:textAppearance="?android:attr/textAppearanceSmall" />
360       </TableRow>
361
362       <TableRow
363           android:id="@+id/main_view"
364           android:visibility="gone"
365           android:layout_weight="1"
366           android:padding="2dip"
367           android:layout_width="wrap_content"
368           android:layout_height="wrap_content"
369           >
370
371           <ImageView
372               android:id="@+id/main_redled"
373               android:layout_width="match_parent"
374               android:layout_height="match_parent"
375               android:scaleType="centerInside"
376               android:paddingRight="5dp"
377               android:contentDescription="@string/main_voltage_label"
378               android:src="@drawable/grayled" />
379
380           <ImageView
381               android:id="@+id/main_greenled"
382               android:layout_width="match_parent"
383               android:layout_height="match_parent"
384               android:scaleType="centerInside"
385               android:contentDescription="@string/main_voltage_label"
386               android:paddingRight="5dp"
387               android:src="@drawable/grayled" />
388
389           <TextView
390               android:id="@+id/main_voltage_label"
391               android:layout_width="wrap_content"
392               android:layout_height="wrap_content"
393               android:layout_toRightOf="@id/main_greenled"
394               android:text="@string/main_voltage_label" />
395
396           <TextView
397               android:id="@+id/main_voltage_value"
398               android:layout_width="wrap_content"
399               android:layout_height="wrap_content"
400               android:layout_alignParentRight="true"
401               android:text=""
402               android:textAppearance="?android:attr/textAppearanceSmall" />
403       </TableRow>
404   </TableLayout>
405 </LinearLayout>