1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright © 2013 Mike Beattie <mike@ethernal.org>
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.
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.
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.
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" >
26 android:layout_weight="0"
27 android:layout_width="fill_parent"
28 android:layout_height="wrap_content"
29 android:orientation="vertical" >
32 xmlns:android="http://schemas.android.com/apk/res/android"
33 android:layout_width="fill_parent"
34 android:layout_height="wrap_content"
35 android:layout_weight="0"
36 android:baselineAligned="true"
37 android:orientation="horizontal" >
40 android:layout_width="0dp"
41 android:layout_height="wrap_content"
42 android:layout_weight="1" >
45 android:id="@+id/speed_label"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:text="@string/speed_label" />
51 android:id="@+id/speed_value"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:layout_alignParentRight="true"
55 android:layout_below="@id/speed_label"
57 android:textAppearance="?android:attr/textAppearanceSmall" />
61 android:layout_width="0dp"
62 android:layout_height="wrap_content"
63 android:layout_weight="1" >
66 android:id="@+id/height_label"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:text="@string/height_label" />
72 android:id="@+id/height_value"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_alignParentRight="true"
76 android:layout_below="@id/height_label"
78 android:textAppearance="?android:attr/textAppearanceSmall" />
84 xmlns:android="http://schemas.android.com/apk/res/android"
85 android:layout_width="fill_parent"
86 android:layout_height="wrap_content"
87 android:layout_weight="0"
88 android:baselineAligned="true"
89 android:orientation="horizontal" >
92 android:layout_width="0dp"
93 android:layout_height="wrap_content"
94 android:layout_weight="1" >
97 android:id="@+id/max_speed_label"
98 android:layout_width="wrap_content"
99 android:layout_height="wrap_content"
100 android:text="@string/max_speed_label" />
103 android:id="@+id/max_speed_value"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:layout_alignParentRight="true"
107 android:layout_below="@id/max_speed_label"
109 android:textAppearance="?android:attr/textAppearanceSmall" />
113 android:layout_width="0dp"
114 android:layout_height="wrap_content"
115 android:layout_weight="1" >
118 android:id="@+id/max_height_label"
119 android:layout_width="wrap_content"
120 android:layout_height="wrap_content"
121 android:text="@string/max_height_label" />
124 android:id="@+id/max_height_value"
125 android:layout_width="wrap_content"
126 android:layout_height="wrap_content"
127 android:layout_alignParentRight="true"
128 android:layout_below="@id/max_height_label"
130 android:textAppearance="?android:attr/textAppearanceSmall" />
136 xmlns:android="http://schemas.android.com/apk/res/android"
137 android:layout_width="fill_parent"
138 android:layout_height="wrap_content"
139 android:layout_weight="0"
140 android:baselineAligned="true"
141 android:orientation="horizontal"
142 android:paddingTop="5dp" >
145 android:layout_width="0dp"
146 android:layout_height="wrap_content"
147 android:layout_weight="1" >
150 android:id="@+id/elevation_label"
151 android:layout_width="wrap_content"
152 android:layout_height="wrap_content"
153 android:text="@string/elevation_label" />
156 android:id="@+id/elevation_value"
157 android:layout_width="wrap_content"
158 android:layout_height="wrap_content"
159 android:layout_alignParentRight="true"
160 android:layout_below="@id/elevation_label"
162 android:textAppearance="?android:attr/textAppearanceSmall" />
166 android:layout_width="0dp"
167 android:layout_height="wrap_content"
168 android:layout_weight="1" >
171 android:id="@+id/range_label"
172 android:layout_width="wrap_content"
173 android:layout_height="wrap_content"
174 android:text="@string/range_label" />
177 android:id="@+id/range_value"
178 android:layout_width="wrap_content"
179 android:layout_height="wrap_content"
180 android:layout_alignParentRight="true"
181 android:layout_below="@id/range_label"
183 android:textAppearance="?android:attr/textAppearanceSmall" />
189 xmlns:android="http://schemas.android.com/apk/res/android"
190 android:layout_width="fill_parent"
191 android:layout_height="wrap_content"
192 android:layout_weight="0"
193 android:baselineAligned="true"
194 android:orientation="horizontal"
195 android:paddingTop="5dp" >
198 android:layout_width="0dp"
199 android:layout_height="wrap_content"
200 android:layout_weight="1" >
203 android:id="@+id/bearing_label"
204 android:layout_width="wrap_content"
205 android:layout_height="wrap_content"
206 android:text="@string/bearing_label" />
209 android:id="@+id/bearing_value"
210 android:layout_width="wrap_content"
211 android:layout_height="wrap_content"
212 android:layout_alignParentRight="true"
213 android:layout_below="@id/bearing_label"
215 android:textAppearance="?android:attr/textAppearanceSmall" />
219 android:layout_width="0dp"
220 android:layout_height="wrap_content"
221 android:layout_weight="1" >
224 android:id="@+id/compass_label"
225 android:layout_width="wrap_content"
226 android:layout_height="wrap_content"
230 android:id="@+id/compass_value"
231 android:layout_width="wrap_content"
232 android:layout_height="wrap_content"
233 android:layout_alignParentRight="true"
234 android:layout_below="@id/compass_label"
236 android:textAppearance="?android:attr/textAppearanceSmall" />
242 xmlns:android="http://schemas.android.com/apk/res/android"
243 android:layout_width="fill_parent"
244 android:layout_height="wrap_content"
245 android:layout_weight="0"
246 android:baselineAligned="true"
247 android:orientation="horizontal"
248 android:paddingTop="5dp" >
251 android:layout_width="0dp"
252 android:layout_height="wrap_content"
253 android:layout_weight="1" >
256 android:id="@+id/distance_label"
257 android:layout_width="wrap_content"
258 android:layout_height="wrap_content"
259 android:text="@string/gnd_distance_label" />
262 android:id="@+id/distance_value"
263 android:layout_width="wrap_content"
264 android:layout_height="wrap_content"
265 android:layout_alignParentRight="true"
266 android:layout_below="@id/distance_label"
268 android:textAppearance="?android:attr/textAppearanceSmall" />
272 android:layout_width="0dp"
273 android:layout_height="wrap_content"
274 android:layout_weight="1" >
280 android:layout_width="wrap_content"
281 android:layout_height="wrap_content"
282 android:paddingTop="5dp" >
285 android:id="@+id/lat_label"
286 android:layout_width="wrap_content"
287 android:layout_height="wrap_content"
288 android:text="@string/latitude_label" />
291 android:id="@+id/lat_value"
292 android:layout_width="wrap_content"
293 android:layout_height="wrap_content"
294 android:layout_alignParentRight="true"
295 android:layout_below="@id/lat_label"
297 android:textAppearance="?android:attr/textAppearanceSmall" />
301 android:layout_width="wrap_content"
302 android:layout_height="wrap_content"
303 android:paddingTop="5dp" >
306 android:id="@+id/lon_label"
307 android:layout_width="wrap_content"
308 android:layout_height="wrap_content"
309 android:text="@string/longitude_label" />
312 android:id="@+id/lon_value"
313 android:layout_width="wrap_content"
314 android:layout_height="wrap_content"
315 android:layout_alignParentRight="true"
316 android:layout_below="@id/lon_label"
318 android:textAppearance="?android:attr/textAppearanceSmall" />
322 android:id="@+id/apogee_view"
323 android:visibility="gone"
324 android:layout_gravity="fill"
325 android:layout_weight="1"
326 android:layout_width="wrap_content"
327 android:layout_height="wrap_content"
328 android:paddingTop="5dp" >
331 android:id="@+id/apogee_redled"
332 android:layout_width="wrap_content"
333 android:layout_height="wrap_content"
334 android:contentDescription="@string/apogee_voltage_label"
335 android:src="@drawable/grayled" />
338 android:id="@+id/apogee_greenled"
339 android:layout_width="wrap_content"
340 android:layout_height="wrap_content"
341 android:layout_toRightOf="@id/apogee_redled"
342 android:contentDescription="@string/apogee_voltage_label"
343 android:paddingRight="5dp"
344 android:src="@drawable/grayled" />
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" />
354 android:id="@+id/apogee_voltage_value"
355 android:layout_width="wrap_content"
356 android:layout_height="wrap_content"
357 android:layout_alignParentRight="true"
359 android:textAppearance="?android:attr/textAppearanceSmall" />
363 android:id="@+id/main_view"
364 android:visibility="gone"
365 android:layout_gravity="fill"
366 android:layout_weight="1"
367 android:layout_width="wrap_content"
368 android:layout_height="wrap_content"
369 android:paddingTop="5dp" >
372 android:id="@+id/main_redled"
373 android:layout_width="wrap_content"
374 android:layout_height="wrap_content"
375 android:contentDescription="@string/main_voltage_label"
376 android:src="@drawable/grayled" />
379 android:id="@+id/main_greenled"
380 android:layout_width="wrap_content"
381 android:layout_height="wrap_content"
382 android:layout_toRightOf="@id/main_redled"
383 android:contentDescription="@string/main_voltage_label"
384 android:paddingRight="5dp"
385 android:src="@drawable/grayled" />
388 android:id="@+id/main_voltage_label"
389 android:layout_width="wrap_content"
390 android:layout_height="wrap_content"
391 android:layout_toRightOf="@id/main_greenled"
392 android:text="@string/main_voltage_label" />
395 android:id="@+id/main_voltage_value"
396 android:layout_width="wrap_content"
397 android:layout_height="wrap_content"
398 android:layout_alignParentRight="true"
400 android:textAppearance="?android:attr/textAppearanceSmall" />