altosdroid: Add tilt angle to pad and flight tabs
[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:id="@+id/tilt_view"
103           android:visibility="gone"
104           android:layout_gravity="center"
105           android:layout_weight="1"
106           android:padding="2dip"
107           android:layout_width="wrap_content"
108           android:layout_height="wrap_content"
109           >
110
111           <TextView
112               android:id="@+id/tilt_label"
113               android:layout_width="wrap_content"
114               android:layout_height="wrap_content"
115               android:layout_column="2"
116               android:text="@string/tilt_label" />
117
118           <TextView
119               android:id="@+id/tilt_value"
120               android:layout_width="wrap_content"
121               android:layout_height="wrap_content"
122               android:text=""
123               android:textAppearance="?android:attr/textAppearanceSmall" />
124       </TableRow>
125
126       <TableRow
127           android:layout_gravity="center"
128           android:layout_weight="1"
129           android:padding="2dip"
130           android:layout_width="wrap_content"
131           android:layout_height="wrap_content"
132           >
133
134           <TextView
135               android:id="@+id/max_speed_label"
136               android:layout_width="wrap_content"
137               android:layout_height="wrap_content"
138               android:layout_column="2"
139               android:text="@string/max_speed_label" />
140
141           <TextView
142               android:id="@+id/max_speed_value"
143               android:layout_width="wrap_content"
144               android:layout_height="wrap_content"
145               android:text="" />
146       </TableRow>
147
148       <TableRow
149           android:layout_gravity="center"
150           android:layout_weight="1"
151           android:padding="2dip"
152           android:layout_width="wrap_content"
153           android:layout_height="wrap_content"
154           >
155
156           <TextView
157               android:id="@+id/max_height_label"
158               android:layout_width="wrap_content"
159               android:layout_height="wrap_content"
160               android:layout_column="2"
161               android:text="@string/max_height_label" />
162
163           <TextView
164               android:id="@+id/max_height_value"
165               android:layout_width="wrap_content"
166               android:layout_height="wrap_content"
167               android:text="" />
168       </TableRow>
169
170       <TableRow
171           android:layout_gravity="center"
172           android:layout_weight="1"
173           android:padding="2dip"
174           android:layout_width="wrap_content"
175           android:layout_height="wrap_content"
176           >
177
178           <TextView
179               android:id="@+id/max_altitude_label"
180               android:layout_width="wrap_content"
181               android:layout_height="wrap_content"
182               android:layout_column="2"
183               android:text="@string/max_altitude_label" />
184
185           <TextView
186               android:id="@+id/max_altitude_value"
187               android:layout_width="wrap_content"
188               android:layout_height="wrap_content"
189               android:text="" />
190       </TableRow>
191
192       <TableRow
193           android:layout_weight="1"
194           android:padding="2dip"
195           android:layout_width="wrap_content"
196           android:layout_height="wrap_content"
197           >
198
199           <TextView
200               android:id="@+id/elevation_label"
201               android:layout_width="wrap_content"
202               android:layout_height="wrap_content"
203               android:layout_column="2"
204               android:text="@string/elevation_label" />
205
206           <TextView
207               android:id="@+id/elevation_value"
208               android:layout_width="wrap_content"
209               android:layout_height="wrap_content"
210               android:text="" />
211       </TableRow>
212
213       <TableRow
214           android:layout_weight="1"
215           android:padding="2dip"
216           android:layout_width="wrap_content"
217           android:layout_height="wrap_content"
218           >
219
220           <TextView
221               android:id="@+id/range_label"
222               android:layout_width="wrap_content"
223               android:layout_height="wrap_content"
224               android:layout_column="2"
225               android:text="@string/range_label" />
226
227           <TextView
228               android:id="@+id/range_value"
229               android:layout_width="wrap_content"
230               android:layout_height="wrap_content"
231               android:layout_alignParentRight="true"
232               android:text=""
233               android:textAppearance="?android:attr/textAppearanceSmall" />
234       </TableRow>
235
236       <TableRow
237           android:layout_weight="1"
238           android:padding="2dip"
239           android:layout_width="wrap_content"
240           android:layout_height="wrap_content"
241           >
242
243           <TextView
244               android:id="@+id/bearing_label"
245               android:layout_width="wrap_content"
246               android:layout_height="wrap_content"
247               android:layout_column="2"
248               android:text="@string/bearing_label" />
249
250           <TextView
251               android:id="@+id/bearing_value"
252               android:layout_width="wrap_content"
253               android:layout_height="wrap_content"
254               android:layout_alignParentRight="true"
255               android:text=""
256               android:textAppearance="?android:attr/textAppearanceSmall" />
257       </TableRow>
258
259       <TableRow
260           android:layout_weight="1"
261           android:padding="2dip"
262           android:layout_width="wrap_content"
263           android:layout_height="wrap_content"
264           >
265
266           <TextView
267               android:id="@+id/compass_value"
268               android:layout_width="wrap_content"
269               android:layout_height="wrap_content"
270               android:layout_alignParentRight="true"
271               android:layout_column="3"
272               android:text=""
273               android:textAppearance="?android:attr/textAppearanceSmall" />
274       </TableRow>
275
276       <TableRow
277           android:layout_weight="1"
278           android:padding="2dip"
279           android:layout_width="wrap_content"
280           android:layout_height="wrap_content"
281           >
282
283           <TextView
284               android:id="@+id/distance_label"
285               android:layout_width="wrap_content"
286               android:layout_height="wrap_content"
287               android:layout_column="2"
288               android:text="@string/gnd_distance_label" />
289
290           <TextView
291               android:id="@+id/distance_value"
292               android:layout_width="wrap_content"
293               android:layout_height="wrap_content"
294               android:layout_alignParentRight="true"
295               android:text=""
296               android:textAppearance="?android:attr/textAppearanceSmall" />
297       </TableRow>
298
299
300       <TableRow
301           android:layout_weight="1"
302           android:padding="2dip"
303           android:layout_width="wrap_content"
304           android:layout_height="wrap_content"
305           >
306
307           <TextView
308               android:id="@+id/lat_label"
309               android:layout_width="wrap_content"
310               android:layout_height="wrap_content"
311               android:layout_column="2"
312               android:text="@string/latitude_label" />
313
314           <TextView
315               android:id="@+id/lat_value"
316               android:layout_width="wrap_content"
317               android:layout_height="wrap_content"
318               android:layout_alignParentRight="true"
319               android:text=""
320               android:textAppearance="?android:attr/textAppearanceSmall" />
321       </TableRow>
322
323       <TableRow
324           android:layout_weight="1"
325           android:padding="2dip"
326           android:layout_width="wrap_content"
327           android:layout_height="wrap_content"
328           >
329
330           <TextView
331               android:id="@+id/lon_label"
332               android:layout_width="wrap_content"
333               android:layout_height="wrap_content"
334               android:layout_column="2"
335               android:text="@string/longitude_label" />
336
337           <TextView
338               android:id="@+id/lon_value"
339               android:layout_width="wrap_content"
340               android:layout_height="wrap_content"
341               android:layout_alignParentRight="true"
342               android:text=""
343               android:textAppearance="?android:attr/textAppearanceSmall" />
344       </TableRow>
345
346       <TableRow
347           android:id="@+id/apogee_view"
348           android:visibility="gone"
349           android:layout_weight="1"
350           android:padding="2dip"
351           android:layout_width="wrap_content"
352           android:layout_height="wrap_content"
353           >
354
355           <ImageView
356               android:id="@+id/apogee_redled"
357               android:layout_width="match_parent"
358               android:layout_height="match_parent"
359               android:scaleType="centerInside"
360               android:contentDescription="@string/apogee_voltage_label"
361               android:src="@drawable/grayled" />
362
363           <ImageView
364               android:id="@+id/apogee_greenled"
365               android:layout_width="match_parent"
366               android:layout_height="match_parent"
367               android:scaleType="centerInside"
368               android:contentDescription="@string/apogee_voltage_label"
369               android:src="@drawable/grayled" />
370
371           <TextView
372               android:id="@+id/apogee_voltage_label"
373               android:layout_width="wrap_content"
374               android:layout_height="wrap_content"
375               android:layout_toRightOf="@id/apogee_greenled"
376               android:text="@string/apogee_voltage_label" />
377
378           <TextView
379               android:id="@+id/apogee_voltage_value"
380               android:layout_width="wrap_content"
381               android:layout_height="wrap_content"
382               android:layout_alignParentRight="true"
383               android:text=""
384               android:textAppearance="?android:attr/textAppearanceSmall" />
385       </TableRow>
386
387       <TableRow
388           android:id="@+id/main_view"
389           android:visibility="gone"
390           android:layout_weight="1"
391           android:padding="2dip"
392           android:layout_width="wrap_content"
393           android:layout_height="wrap_content"
394           >
395
396           <ImageView
397               android:id="@+id/main_redled"
398               android:layout_width="match_parent"
399               android:layout_height="match_parent"
400               android:scaleType="centerInside"
401               android:paddingRight="5dp"
402               android:contentDescription="@string/main_voltage_label"
403               android:src="@drawable/grayled" />
404
405           <ImageView
406               android:id="@+id/main_greenled"
407               android:layout_width="match_parent"
408               android:layout_height="match_parent"
409               android:scaleType="centerInside"
410               android:contentDescription="@string/main_voltage_label"
411               android:paddingRight="5dp"
412               android:src="@drawable/grayled" />
413
414           <TextView
415               android:id="@+id/main_voltage_label"
416               android:layout_width="wrap_content"
417               android:layout_height="wrap_content"
418               android:layout_toRightOf="@id/main_greenled"
419               android:text="@string/main_voltage_label" />
420
421           <TextView
422               android:id="@+id/main_voltage_value"
423               android:layout_width="wrap_content"
424               android:layout_height="wrap_content"
425               android:layout_alignParentRight="true"
426               android:text=""
427               android:textAppearance="?android:attr/textAppearanceSmall" />
428       </TableRow>
429   </TableLayout>
430 </LinearLayout>