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