Merge remote-tracking branch 'mjb/master'
[fw/altos] / altosdroid / res / layout / altosdroid.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2009 The Android Open Source Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
17         android:layout_width="fill_parent"
18         android:layout_height="wrap_content"
19         android:layout_weight="0" >
20
21         <RelativeLayout
22             android:id="@+id/strut"
23             android:layout_width="10dip"
24             android:layout_height="wrap_content"
25             android:layout_centerHorizontal="true" >
26
27         </RelativeLayout>
28
29         <RelativeLayout
30             android:id="@+id/callsign_container"
31             android:layout_width="wrap_content"
32             android:layout_height="wrap_content"
33             android:layout_alignParentLeft="true"
34             android:layout_toLeftOf="@+id/strut" >
35
36             <TextView
37                 android:id="@+id/callsign_label"
38                 android:layout_width="wrap_content"
39                 android:layout_height="wrap_content"
40                 android:text="@string/callsign_label" />
41
42             <TextView
43                 android:id="@+id/callsign_value"
44                 android:layout_width="wrap_content"
45                 android:layout_height="wrap_content"
46                 android:layout_alignParentRight="true"
47                 android:layout_below="@id/callsign_label"
48                 android:text=""
49                 android:textAppearance="?android:attr/textAppearanceLarge" />
50
51         </RelativeLayout>
52
53         <RelativeLayout
54             android:id="@+id/rssi_container"
55             android:layout_width="wrap_content"
56             android:layout_height="wrap_content"
57             android:layout_toRightOf="@id/strut"
58             android:layout_alignParentRight="true" >
59
60             <TextView
61                 android:id="@+id/rssi_label"
62                 android:layout_width="wrap_content"
63                 android:layout_height="wrap_content"
64                 android:text="@string/rssi_label" />
65
66             <TextView
67                 android:id="@+id/rssi_value"
68                 android:layout_width="wrap_content"
69                 android:layout_height="wrap_content"
70                 android:layout_alignParentRight="true"
71                 android:layout_below="@+id/rssi_label"
72                 android:textAppearance="?android:attr/textAppearanceLarge" />
73         </RelativeLayout>
74
75         <RelativeLayout
76             android:id="@+id/serial_container"
77             android:layout_width="wrap_content"
78             android:layout_height="wrap_content"
79             android:layout_below="@+id/callsign_container"
80             android:layout_toLeftOf="@+id/strut" >
81
82             <TextView
83                 android:id="@+id/serial_label"
84                 android:layout_width="wrap_content"
85                 android:layout_height="wrap_content"
86                 android:text="@string/serial_label" />
87
88             <TextView
89                 android:id="@+id/serial_value"
90                 android:layout_width="wrap_content"
91                 android:layout_height="wrap_content"
92                 android:layout_alignParentRight="true"
93                 android:layout_below="@+id/serial_label"
94                 android:textAppearance="?android:attr/textAppearanceLarge" />
95         </RelativeLayout>
96
97         <RelativeLayout
98             android:id="@+id/flight_container"
99             android:layout_width="wrap_content"
100             android:layout_height="wrap_content"
101             android:layout_below="@+id/callsign_container"
102             android:layout_toRightOf="@+id/strut"
103             android:layout_alignParentRight="true" >
104
105             <TextView
106                 android:id="@+id/flight_label"
107                 android:layout_width="wrap_content"
108                 android:layout_height="wrap_content"
109                 android:text="@string/flight_label" />
110
111             <TextView
112                 android:id="@+id/flight_value"
113                 android:layout_width="wrap_content"
114                 android:layout_height="wrap_content"
115                 android:layout_alignParentRight="true"
116                 android:layout_below="@+id/flight_label"
117                 android:textAppearance="?android:attr/textAppearanceLarge" />
118         </RelativeLayout>
119
120         <RelativeLayout
121             android:id="@+id/state_container"
122             android:layout_width="fill_parent"
123             android:layout_height="wrap_content"
124             android:layout_below="@+id/serial_container" >
125
126             <TextView
127                 android:id="@+id/state_label"
128                 android:layout_width="wrap_content"
129                 android:layout_height="wrap_content"
130                 android:text="@string/state_label" />
131
132             <TextView
133                 android:id="@+id/state_value"
134                 android:layout_width="wrap_content"
135                 android:layout_height="wrap_content"
136                 android:layout_below="@+id/state_label"
137                 android:layout_centerInParent="true"
138                 android:textAppearance="?android:attr/textAppearanceLarge"
139                 android:textSize="50dip" />
140
141         </RelativeLayout>
142
143         <RelativeLayout
144             android:id="@+id/speed_container"
145             android:layout_width="wrap_content"
146             android:layout_height="wrap_content"
147             android:layout_alignParentLeft="true"
148             android:layout_below="@+id/state_container"
149             android:layout_toLeftOf="@+id/strut" >
150
151             <TextView
152                 android:id="@+id/speed_label"
153                 android:layout_width="wrap_content"
154                 android:layout_height="wrap_content"
155                 android:text="@string/speed_label" />
156
157             <TextView
158                 android:id="@+id/speed_value"
159                 android:layout_width="wrap_content"
160                 android:layout_height="wrap_content"
161                 android:layout_alignParentRight="true"
162                 android:layout_below="@id/speed_label"
163                 android:text=""
164                 android:textAppearance="?android:attr/textAppearanceLarge" />
165
166         </RelativeLayout>
167
168         <RelativeLayout
169             android:id="@+id/accel_container"
170             android:layout_width="wrap_content"
171             android:layout_height="wrap_content"
172             android:layout_alignParentRight="true"
173             android:layout_below="@+id/state_container"
174             android:layout_toRightOf="@+id/strut" >
175
176             <TextView
177                 android:id="@+id/accel_label"
178                 android:layout_width="wrap_content"
179                 android:layout_height="wrap_content"
180                 android:text="@string/accel_label" />
181
182             <TextView
183                 android:id="@+id/accel_value"
184                 android:layout_width="wrap_content"
185                 android:layout_height="wrap_content"
186                 android:layout_alignParentRight="true"
187                 android:layout_below="@+id/accel_label"
188                 android:text=""
189                 android:textAppearance="?android:attr/textAppearanceLarge" />
190
191         </RelativeLayout>
192
193         <RelativeLayout
194             android:id="@+id/range_container"
195             android:layout_width="wrap_content"
196             android:layout_height="wrap_content"
197             android:layout_alignParentLeft="true"
198             android:layout_below="@+id/speed_container"
199             android:layout_toLeftOf="@+id/strut" >
200
201             <TextView
202                 android:id="@+id/range_label"
203                 android:layout_width="wrap_content"
204                 android:layout_height="wrap_content"
205                 android:text="@string/range_label" />
206
207             <TextView
208                 android:id="@+id/range_value"
209                 android:layout_width="wrap_content"
210                 android:layout_height="wrap_content"
211                 android:layout_alignParentRight="true"
212                 android:layout_below="@+id/range_label"
213                 android:text=""
214                 android:textAppearance="?android:attr/textAppearanceLarge" />
215
216         </RelativeLayout>
217
218         <RelativeLayout
219             android:id="@+id/height_container"
220             android:layout_width="wrap_content"
221             android:layout_height="wrap_content"
222             android:layout_alignParentRight="true"
223             android:layout_below="@id/speed_container"
224             android:layout_toRightOf="@id/strut" >
225
226             <TextView
227                 android:id="@+id/height_label"
228                 android:layout_width="wrap_content"
229                 android:layout_height="wrap_content"
230                 android:text="@string/height_label" />
231
232             <TextView
233                 android:id="@+id/height_value"
234                 android:layout_width="wrap_content"
235                 android:layout_height="wrap_content"
236                 android:layout_alignParentRight="true"
237                 android:layout_below="@+id/height_label"
238                 android:text=""
239                 android:textAppearance="?android:attr/textAppearanceLarge" />
240         </RelativeLayout>
241
242         <RelativeLayout
243             android:id="@+id/elevation_container"
244             android:layout_width="wrap_content"
245             android:layout_height="wrap_content"
246             android:layout_alignParentLeft="true"
247             android:layout_below="@id/range_container"
248             android:layout_toLeftOf="@id/strut" >
249
250             <TextView
251                 android:id="@+id/elevation_label"
252                 android:layout_width="wrap_content"
253                 android:layout_height="wrap_content"
254                 android:text="@string/elevation_label" />
255
256             <TextView
257                 android:id="@+id/elevation_value"
258                 android:layout_width="wrap_content"
259                 android:layout_height="wrap_content"
260                 android:layout_alignParentRight="true"
261                 android:layout_below="@+id/elevation_label"
262                 android:text=""
263                 android:textAppearance="?android:attr/textAppearanceLarge" />
264         </RelativeLayout>
265
266         <RelativeLayout
267             android:id="@+id/bearing_container"
268             android:layout_width="wrap_content"
269             android:layout_height="wrap_content"
270             android:layout_alignParentRight="true"
271             android:layout_below="@+id/range_container"
272             android:layout_toRightOf="@+id/strut" >
273
274             <TextView
275                 android:id="@+id/bearing_label"
276                 android:layout_width="wrap_content"
277                 android:layout_height="wrap_content"
278                 android:text="@string/bearing_label" />
279
280             <TextView
281                 android:id="@+id/bearing_value"
282                 android:layout_width="wrap_content"
283                 android:layout_height="wrap_content"
284                 android:layout_alignParentRight="true"
285                 android:layout_below="@+id/bearing_label"
286                 android:text=""
287                 android:textAppearance="?android:attr/textAppearanceLarge" />
288
289         </RelativeLayout>
290
291         <RelativeLayout
292             android:id="@+id/latitude_container"
293             android:layout_width="wrap_content"
294             android:layout_height="wrap_content"
295             android:layout_below="@+id/elevation_container" >
296
297             <TextView
298                 android:id="@+id/latitude_label"
299                 android:layout_width="wrap_content"
300                 android:layout_height="wrap_content"
301                 android:text="@string/latitude_label" />
302
303             <TextView
304                 android:id="@+id/latitude_value"
305                 android:layout_width="wrap_content"
306                 android:layout_height="wrap_content"
307                 android:layout_alignParentRight="true"
308                 android:layout_below="@+id/latitude_label"
309                 android:text=""
310                 android:textAppearance="?android:attr/textAppearanceLarge" />
311
312         </RelativeLayout>
313
314         <RelativeLayout
315             android:id="@+id/longitude_container"
316             android:layout_width="wrap_content"
317             android:layout_height="wrap_content"
318             android:layout_below="@id/latitude_container" >
319
320             <TextView
321                 android:id="@+id/longitude_label"
322                 android:layout_width="wrap_content"
323                 android:layout_height="wrap_content"
324                 android:text="@string/longitude_label" />
325
326             <TextView
327                 android:id="@+id/longitude_value"
328                 android:layout_width="wrap_content"
329                 android:layout_height="wrap_content"
330                 android:layout_alignParentRight="true"
331                 android:layout_below="@+id/longitude_label"
332                 android:text=""
333                 android:textAppearance="?android:attr/textAppearanceLarge" />
334
335         </RelativeLayout>
336
337
338         <RelativeLayout
339             android:id="@+id/text_container"
340             android:layout_width="wrap_content"
341             android:layout_height="fill_parent"
342             android:layout_below="@id/longitude_container" >
343
344                 <TextView
345                     android:id="@+id/text"
346                     android:layout_width="fill_parent"
347                     android:layout_height="fill_parent"
348                     android:layout_above="@+id/version"
349                     android:scrollbars="vertical"
350                     android:textSize="7dp"
351                     android:typeface="monospace" />
352         
353             <TextView
354                 android:id="@+id/version"
355                 android:layout_width="fill_parent"
356                 android:layout_height="10dip"
357                 android:layout_alignParentBottom="true"
358                 android:gravity="bottom|right"
359                 android:textSize="7dp"
360                 android:typeface="monospace" />
361
362         </RelativeLayout>
363
364     </RelativeLayout>