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