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