altosdroid: Add text size selection
[fw/altos] / altosdroid / app / src / main / 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; either version 2 of the License, or
8     (at your option) any later version.
9
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.
14
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.
18 -->
19 <LinearLayout
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" >
24
25   <TableLayout
26       xmlns:android="http://schemas.android.com/apk/res/android"
27       android:stretchColumns="2,3"
28       android:layout_weight="0"
29       android:layout_width="wrap_content"
30       android:layout_height="wrap_content">
31
32       <TableRow
33           android:layout_gravity="center"
34           android:layout_weight="1"
35           android:padding="2dip"
36           android:layout_width="wrap_content"
37           android:layout_height="wrap_content"
38           >
39
40           <TextView
41               android:id="@+id/speed_label"
42               android:layout_width="wrap_content"
43               android:layout_height="wrap_content"
44               android:layout_column="2"
45               android:text="@string/speed_label" />
46
47           <TextView
48               android:id="@+id/speed_value"
49               android:layout_width="wrap_content"
50               android:layout_height="wrap_content"
51               android:text=""
52               android:textAppearance="?android:attr/textAppearanceSmall" />
53       </TableRow>
54
55       <TableRow
56           android:layout_weight="1"
57           android:padding="2dip"
58           android:layout_width="wrap_content"
59           android:layout_height="wrap_content"
60           >
61
62           <TextView
63               android:id="@+id/height_label"
64               android:layout_width="wrap_content"
65               android:layout_height="wrap_content"
66               android:layout_column="2"
67               android:text="@string/height_label" />
68
69           <TextView
70               android:id="@+id/height_value"
71               android:layout_width="wrap_content"
72               android:layout_height="wrap_content"
73               android:layout_alignParentRight="true"
74               android:text=""
75               android:textAppearance="?android:attr/textAppearanceSmall" />
76       </TableRow>
77
78       <TableRow
79           android:layout_gravity="center"
80           android:layout_weight="1"
81           android:padding="2dip"
82           android:layout_width="wrap_content"
83           android:layout_height="wrap_content"
84           >
85
86           <TextView
87               android:id="@+id/max_speed_label"
88               android:layout_width="wrap_content"
89               android:layout_height="wrap_content"
90               android:layout_column="2"
91               android:text="@string/max_speed_label" />
92
93           <TextView
94               android:id="@+id/max_speed_value"
95               android:layout_width="wrap_content"
96               android:layout_height="wrap_content"
97               android:text="" />
98       </TableRow>
99
100       <TableRow
101           android:layout_gravity="center"
102           android:layout_weight="1"
103           android:padding="2dip"
104           android:layout_width="wrap_content"
105           android:layout_height="wrap_content"
106           >
107
108           <TextView
109               android:id="@+id/max_height_label"
110               android:layout_width="wrap_content"
111               android:layout_height="wrap_content"
112               android:layout_column="2"
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:text="" />
120       </TableRow>
121
122       <TableRow
123           android:layout_weight="1"
124           android:padding="2dip"
125           android:layout_width="wrap_content"
126           android:layout_height="wrap_content"
127           >
128
129           <TextView
130               android:id="@+id/elevation_label"
131               android:layout_width="wrap_content"
132               android:layout_height="wrap_content"
133               android:layout_column="2"
134               android:text="@string/elevation_label" />
135
136           <TextView
137               android:id="@+id/elevation_value"
138               android:layout_width="wrap_content"
139               android:layout_height="wrap_content"
140               android:text="" />
141       </TableRow>
142
143       <TableRow
144           android:layout_weight="1"
145           android:padding="2dip"
146           android:layout_width="wrap_content"
147           android:layout_height="wrap_content"
148           >
149
150           <TextView
151               android:id="@+id/range_label"
152               android:layout_width="wrap_content"
153               android:layout_height="wrap_content"
154               android:layout_column="2"
155               android:text="@string/range_label" />
156
157           <TextView
158               android:id="@+id/range_value"
159               android:layout_width="wrap_content"
160               android:layout_height="wrap_content"
161               android:layout_alignParentRight="true"
162               android:text=""
163               android:textAppearance="?android:attr/textAppearanceSmall" />
164       </TableRow>
165
166       <TableRow
167           android:layout_weight="1"
168           android:padding="2dip"
169           android:layout_width="wrap_content"
170           android:layout_height="wrap_content"
171           >
172
173           <TextView
174               android:id="@+id/bearing_label"
175               android:layout_width="wrap_content"
176               android:layout_height="wrap_content"
177               android:layout_column="2"
178               android:text="@string/bearing_label" />
179
180           <TextView
181               android:id="@+id/bearing_value"
182               android:layout_width="wrap_content"
183               android:layout_height="wrap_content"
184               android:layout_alignParentRight="true"
185               android:text=""
186               android:textAppearance="?android:attr/textAppearanceSmall" />
187       </TableRow>
188
189       <TableRow
190           android:layout_weight="1"
191           android:padding="2dip"
192           android:layout_width="wrap_content"
193           android:layout_height="wrap_content"
194           >
195
196           <TextView
197               android:id="@+id/compass_value"
198               android:layout_width="wrap_content"
199               android:layout_height="wrap_content"
200               android:layout_alignParentRight="true"
201               android:layout_column="3"
202               android:text=""
203               android:textAppearance="?android:attr/textAppearanceSmall" />
204       </TableRow>
205
206       <TableRow
207           android:layout_weight="1"
208           android:padding="2dip"
209           android:layout_width="wrap_content"
210           android:layout_height="wrap_content"
211           >
212
213           <TextView
214               android:id="@+id/distance_label"
215               android:layout_width="wrap_content"
216               android:layout_height="wrap_content"
217               android:layout_column="2"
218               android:text="@string/gnd_distance_label" />
219
220           <TextView
221               android:id="@+id/distance_value"
222               android:layout_width="wrap_content"
223               android:layout_height="wrap_content"
224               android:layout_alignParentRight="true"
225               android:text=""
226               android:textAppearance="?android:attr/textAppearanceSmall" />
227       </TableRow>
228
229
230       <TableRow
231           android:layout_weight="1"
232           android:padding="2dip"
233           android:layout_width="wrap_content"
234           android:layout_height="wrap_content"
235           >
236
237           <TextView
238               android:id="@+id/lat_label"
239               android:layout_width="wrap_content"
240               android:layout_height="wrap_content"
241               android:layout_column="2"
242               android:text="@string/latitude_label" />
243
244           <TextView
245               android:id="@+id/lat_value"
246               android:layout_width="wrap_content"
247               android:layout_height="wrap_content"
248               android:layout_alignParentRight="true"
249               android:text=""
250               android:textAppearance="?android:attr/textAppearanceSmall" />
251       </TableRow>
252
253       <TableRow
254           android:layout_weight="1"
255           android:padding="2dip"
256           android:layout_width="wrap_content"
257           android:layout_height="wrap_content"
258           >
259
260           <TextView
261               android:id="@+id/lon_label"
262               android:layout_width="wrap_content"
263               android:layout_height="wrap_content"
264               android:layout_column="2"
265               android:text="@string/longitude_label" />
266
267           <TextView
268               android:id="@+id/lon_value"
269               android:layout_width="wrap_content"
270               android:layout_height="wrap_content"
271               android:layout_alignParentRight="true"
272               android:text=""
273               android:textAppearance="?android:attr/textAppearanceSmall" />
274       </TableRow>
275
276       <TableRow
277           android:id="@+id/apogee_view"
278           android:visibility="gone"
279           android:layout_weight="1"
280           android:padding="2dip"
281           android:layout_width="wrap_content"
282           android:layout_height="wrap_content"
283           >
284
285           <ImageView
286               android:id="@+id/apogee_redled"
287               android:layout_width="match_parent"
288               android:layout_height="match_parent"
289               android:scaleType="centerInside"
290               android:contentDescription="@string/apogee_voltage_label"
291               android:src="@drawable/grayled" />
292
293           <ImageView
294               android:id="@+id/apogee_greenled"
295               android:layout_width="match_parent"
296               android:layout_height="match_parent"
297               android:scaleType="centerInside"
298               android:contentDescription="@string/apogee_voltage_label"
299               android:src="@drawable/grayled" />
300
301           <TextView
302               android:id="@+id/apogee_voltage_label"
303               android:layout_width="wrap_content"
304               android:layout_height="wrap_content"
305               android:layout_toRightOf="@id/apogee_greenled"
306               android:text="@string/apogee_voltage_label" />
307
308           <TextView
309               android:id="@+id/apogee_voltage_value"
310               android:layout_width="wrap_content"
311               android:layout_height="wrap_content"
312               android:layout_alignParentRight="true"
313               android:text=""
314               android:textAppearance="?android:attr/textAppearanceSmall" />
315       </TableRow>
316
317       <TableRow
318           android:id="@+id/main_view"
319           android:visibility="gone"
320           android:layout_weight="1"
321           android:padding="2dip"
322           android:layout_width="wrap_content"
323           android:layout_height="wrap_content"
324           >
325
326           <ImageView
327               android:id="@+id/main_redled"
328               android:layout_width="match_parent"
329               android:layout_height="match_parent"
330               android:scaleType="centerInside"
331               android:paddingRight="5dp"
332               android:contentDescription="@string/main_voltage_label"
333               android:src="@drawable/grayled" />
334
335           <ImageView
336               android:id="@+id/main_greenled"
337               android:layout_width="match_parent"
338               android:layout_height="match_parent"
339               android:scaleType="centerInside"
340               android:contentDescription="@string/main_voltage_label"
341               android:paddingRight="5dp"
342               android:src="@drawable/grayled" />
343
344           <TextView
345               android:id="@+id/main_voltage_label"
346               android:layout_width="wrap_content"
347               android:layout_height="wrap_content"
348               android:layout_toRightOf="@id/main_greenled"
349               android:text="@string/main_voltage_label" />
350
351           <TextView
352               android:id="@+id/main_voltage_value"
353               android:layout_width="wrap_content"
354               android:layout_height="wrap_content"
355               android:layout_alignParentRight="true"
356               android:text=""
357               android:textAppearance="?android:attr/textAppearanceSmall" />
358       </TableRow>
359   </TableLayout>
360 </LinearLayout>