1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright © 2012-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; version 2 of the License.
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.
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.
18 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="fill_parent"
20 android:layout_height="wrap_content"
21 android:layout_weight="0" >
24 android:id="@+id/strut"
25 android:layout_width="10dip"
26 android:layout_height="wrap_content"
27 android:layout_centerHorizontal="true" >
32 android:id="@+id/callsign_container"
33 android:layout_width="wrap_content"
34 android:layout_height="wrap_content"
35 android:layout_alignParentLeft="true"
36 android:layout_toLeftOf="@+id/strut" >
39 android:id="@+id/callsign_label"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:text="@string/callsign_label" />
45 android:id="@+id/callsign_value"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:layout_alignParentRight="true"
49 android:layout_below="@id/callsign_label"
51 android:textAppearance="?android:attr/textAppearanceLarge" />
56 android:id="@+id/rssi_container"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_toRightOf="@id/strut"
60 android:layout_alignParentRight="true" >
63 android:id="@+id/rssi_label"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:text="@string/rssi_label" />
69 android:id="@+id/rssi_value"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:layout_alignParentRight="true"
73 android:layout_below="@+id/rssi_label"
74 android:textAppearance="?android:attr/textAppearanceLarge" />
78 android:id="@+id/serial_container"
79 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
81 android:layout_below="@+id/callsign_container"
82 android:layout_toLeftOf="@+id/strut" >
85 android:id="@+id/serial_label"
86 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
88 android:text="@string/serial_label" />
91 android:id="@+id/serial_value"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:layout_alignParentRight="true"
95 android:layout_below="@+id/serial_label"
96 android:textAppearance="?android:attr/textAppearanceLarge" />
100 android:id="@+id/flight_container"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content"
103 android:layout_below="@+id/callsign_container"
104 android:layout_toRightOf="@+id/strut"
105 android:layout_alignParentRight="true" >
108 android:id="@+id/flight_label"
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content"
111 android:text="@string/flight_label" />
114 android:id="@+id/flight_value"
115 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"
117 android:layout_alignParentRight="true"
118 android:layout_below="@+id/flight_label"
119 android:textAppearance="?android:attr/textAppearanceLarge" />
123 android:id="@+id/state_container"
124 android:layout_width="fill_parent"
125 android:layout_height="wrap_content"
126 android:layout_below="@+id/serial_container" >
129 android:id="@+id/state_label"
130 android:layout_width="wrap_content"
131 android:layout_height="wrap_content"
132 android:text="@string/state_label" />
135 android:id="@+id/state_value"
136 android:layout_width="wrap_content"
137 android:layout_height="wrap_content"
138 android:layout_below="@+id/state_label"
139 android:layout_centerInParent="true"
140 android:textAppearance="?android:attr/textAppearanceLarge"
141 android:textSize="50dip" />
146 android:id="@+id/speed_container"
147 android:layout_width="wrap_content"
148 android:layout_height="wrap_content"
149 android:layout_alignParentLeft="true"
150 android:layout_below="@+id/state_container"
151 android:layout_toLeftOf="@+id/strut" >
154 android:id="@+id/speed_label"
155 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"
157 android:text="@string/speed_label" />
160 android:id="@+id/speed_value"
161 android:layout_width="wrap_content"
162 android:layout_height="wrap_content"
163 android:layout_alignParentRight="true"
164 android:layout_below="@id/speed_label"
166 android:textAppearance="?android:attr/textAppearanceLarge" />
171 android:id="@+id/accel_container"
172 android:layout_width="wrap_content"
173 android:layout_height="wrap_content"
174 android:layout_alignParentRight="true"
175 android:layout_below="@+id/state_container"
176 android:layout_toRightOf="@+id/strut" >
179 android:id="@+id/accel_label"
180 android:layout_width="wrap_content"
181 android:layout_height="wrap_content"
182 android:text="@string/accel_label" />
185 android:id="@+id/accel_value"
186 android:layout_width="wrap_content"
187 android:layout_height="wrap_content"
188 android:layout_alignParentRight="true"
189 android:layout_below="@+id/accel_label"
191 android:textAppearance="?android:attr/textAppearanceLarge" />
196 android:id="@+id/range_container"
197 android:layout_width="wrap_content"
198 android:layout_height="wrap_content"
199 android:layout_alignParentLeft="true"
200 android:layout_below="@+id/speed_container"
201 android:layout_toLeftOf="@+id/strut" >
204 android:id="@+id/range_label"
205 android:layout_width="wrap_content"
206 android:layout_height="wrap_content"
207 android:text="@string/range_label" />
210 android:id="@+id/range_value"
211 android:layout_width="wrap_content"
212 android:layout_height="wrap_content"
213 android:layout_alignParentRight="true"
214 android:layout_below="@+id/range_label"
216 android:textAppearance="?android:attr/textAppearanceLarge" />
221 android:id="@+id/height_container"
222 android:layout_width="wrap_content"
223 android:layout_height="wrap_content"
224 android:layout_alignParentRight="true"
225 android:layout_below="@id/speed_container"
226 android:layout_toRightOf="@id/strut" >
229 android:id="@+id/height_label"
230 android:layout_width="wrap_content"
231 android:layout_height="wrap_content"
232 android:text="@string/height_label" />
235 android:id="@+id/height_value"
236 android:layout_width="wrap_content"
237 android:layout_height="wrap_content"
238 android:layout_alignParentRight="true"
239 android:layout_below="@+id/height_label"
241 android:textAppearance="?android:attr/textAppearanceLarge" />
245 android:id="@+id/elevation_container"
246 android:layout_width="wrap_content"
247 android:layout_height="wrap_content"
248 android:layout_alignParentLeft="true"
249 android:layout_below="@id/range_container"
250 android:layout_toLeftOf="@id/strut" >
253 android:id="@+id/elevation_label"
254 android:layout_width="wrap_content"
255 android:layout_height="wrap_content"
256 android:text="@string/elevation_label" />
259 android:id="@+id/elevation_value"
260 android:layout_width="wrap_content"
261 android:layout_height="wrap_content"
262 android:layout_alignParentRight="true"
263 android:layout_below="@+id/elevation_label"
265 android:textAppearance="?android:attr/textAppearanceLarge" />
269 android:id="@+id/bearing_container"
270 android:layout_width="wrap_content"
271 android:layout_height="wrap_content"
272 android:layout_alignParentRight="true"
273 android:layout_below="@+id/range_container"
274 android:layout_toRightOf="@+id/strut" >
277 android:id="@+id/bearing_label"
278 android:layout_width="wrap_content"
279 android:layout_height="wrap_content"
280 android:text="@string/bearing_label" />
283 android:id="@+id/bearing_value"
284 android:layout_width="wrap_content"
285 android:layout_height="wrap_content"
286 android:layout_alignParentRight="true"
287 android:layout_below="@+id/bearing_label"
289 android:textAppearance="?android:attr/textAppearanceLarge" />
294 android:id="@+id/latitude_container"
295 android:layout_width="wrap_content"
296 android:layout_height="wrap_content"
297 android:layout_below="@+id/elevation_container" >
300 android:id="@+id/latitude_label"
301 android:layout_width="wrap_content"
302 android:layout_height="wrap_content"
303 android:text="@string/latitude_label" />
306 android:id="@+id/latitude_value"
307 android:layout_width="wrap_content"
308 android:layout_height="wrap_content"
309 android:layout_alignParentRight="true"
310 android:layout_below="@+id/latitude_label"
312 android:textAppearance="?android:attr/textAppearanceLarge" />
317 android:id="@+id/longitude_container"
318 android:layout_width="wrap_content"
319 android:layout_height="wrap_content"
320 android:layout_below="@id/latitude_container" >
323 android:id="@+id/longitude_label"
324 android:layout_width="wrap_content"
325 android:layout_height="wrap_content"
326 android:text="@string/longitude_label" />
329 android:id="@+id/longitude_value"
330 android:layout_width="wrap_content"
331 android:layout_height="wrap_content"
332 android:layout_alignParentRight="true"
333 android:layout_below="@+id/longitude_label"
335 android:textAppearance="?android:attr/textAppearanceLarge" />
341 android:id="@+id/text_container"
342 android:layout_width="wrap_content"
343 android:layout_height="fill_parent"
344 android:layout_below="@id/longitude_container" >
347 android:id="@+id/text"
348 android:layout_width="fill_parent"
349 android:layout_height="fill_parent"
350 android:layout_above="@+id/version"
351 android:scrollbars="vertical"
352 android:textSize="7dp"
353 android:typeface="monospace" />
356 android:id="@+id/version"
357 android:layout_width="fill_parent"
358 android:layout_height="10dip"
359 android:layout_alignParentBottom="true"
360 android:gravity="bottom|right"
361 android:textSize="7dp"
362 android:typeface="monospace" />