9e1fc820f5150fd90c9740e4222b5c6243c8f86b
[fw/altos] / altosdroid / res / layout / tab_descent.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                 android:paddingTop="5dp" >
83
84                 <RelativeLayout
85                         android:layout_width="0dp"
86                         android:layout_height="wrap_content"
87                         android:layout_weight="1" >
88
89                         <TextView
90                                 android:id="@+id/elevation_label"
91                                 android:layout_width="wrap_content"
92                                 android:layout_height="wrap_content"
93                                 android:text="@string/elevation_label" />
94
95                         <TextView
96                                 android:id="@+id/elevation_value"
97                                 android:layout_width="wrap_content"
98                                 android:layout_height="wrap_content"
99                                 android:layout_alignParentRight="true"
100                                 android:layout_below="@id/elevation_label"
101                                 android:text=""
102                                 android:textAppearance="?android:attr/textAppearanceSmall" />
103                 </RelativeLayout>
104
105                 <RelativeLayout
106                         android:layout_width="0dp"
107                         android:layout_height="wrap_content"
108                         android:layout_weight="1" >
109
110                         <TextView
111                                 android:id="@+id/range_label"
112                                 android:layout_width="wrap_content"
113                                 android:layout_height="wrap_content"
114                                 android:text="@string/range_label" />
115
116                         <TextView
117                                 android:id="@+id/range_value"
118                                 android:layout_width="wrap_content"
119                                 android:layout_height="wrap_content"
120                                 android:layout_alignParentRight="true"
121                                 android:layout_below="@id/range_label"
122                                 android:text=""
123                                 android:textAppearance="?android:attr/textAppearanceSmall" />
124                 </RelativeLayout>
125
126         </LinearLayout>
127
128         <LinearLayout
129                 xmlns:android="http://schemas.android.com/apk/res/android"
130                 android:layout_width="fill_parent"
131                 android:layout_height="wrap_content"
132                 android:layout_weight="0"
133                 android:baselineAligned="true"
134                 android:orientation="horizontal"
135                 android:paddingTop="5dp" >
136
137                 <RelativeLayout
138                         android:layout_width="0dp"
139                         android:layout_height="wrap_content"
140                         android:layout_weight="1" >
141
142                         <TextView
143                                 android:id="@+id/bearing_label"
144                                 android:layout_width="wrap_content"
145                                 android:layout_height="wrap_content"
146                                 android:text="@string/bearing_label" />
147
148                         <TextView
149                                 android:id="@+id/bearing_value"
150                                 android:layout_width="wrap_content"
151                                 android:layout_height="wrap_content"
152                                 android:layout_alignParentRight="true"
153                                 android:layout_below="@id/bearing_label"
154                                 android:text=""
155                                 android:textAppearance="?android:attr/textAppearanceSmall" />
156                 </RelativeLayout>
157
158                 <RelativeLayout
159                         android:layout_width="0dp"
160                         android:layout_height="wrap_content"
161                         android:layout_weight="1" >
162
163                         <TextView
164                                 android:id="@+id/compass_label"
165                                 android:layout_width="wrap_content"
166                                 android:layout_height="wrap_content"
167                                 android:text="" />
168
169                         <TextView
170                                 android:id="@+id/compass_value"
171                                 android:layout_width="wrap_content"
172                                 android:layout_height="wrap_content"
173                                 android:layout_alignParentRight="true"
174                                 android:layout_below="@id/compass_label"
175                                 android:text=""
176                                 android:textAppearance="?android:attr/textAppearanceSmall" />
177                 </RelativeLayout>
178
179         </LinearLayout>
180
181         <LinearLayout
182                 xmlns:android="http://schemas.android.com/apk/res/android"
183                 android:layout_width="fill_parent"
184                 android:layout_height="wrap_content"
185                 android:layout_weight="0"
186                 android:baselineAligned="true"
187                 android:orientation="horizontal"
188                 android:paddingTop="5dp" >
189
190                 <RelativeLayout
191                         android:layout_width="0dp"
192                         android:layout_height="wrap_content"
193                         android:layout_weight="1" >
194
195                         <TextView
196                                 android:id="@+id/distance_label"
197                                 android:layout_width="wrap_content"
198                                 android:layout_height="wrap_content"
199                                 android:text="@string/gnd_distance_label" />
200
201                         <TextView
202                                 android:id="@+id/distance_value"
203                                 android:layout_width="wrap_content"
204                                 android:layout_height="wrap_content"
205                                 android:layout_alignParentRight="true"
206                                 android:layout_below="@id/distance_label"
207                                 android:text=""
208                                 android:textAppearance="?android:attr/textAppearanceSmall" />
209                 </RelativeLayout>
210
211                 <TextView
212                         android:layout_width="0dp"
213                         android:layout_height="wrap_content"
214                         android:layout_weight="1" >
215                 </TextView>
216
217         </LinearLayout>
218
219         <RelativeLayout
220                 android:layout_width="wrap_content"
221                 android:layout_height="wrap_content"
222                 android:paddingTop="5dp" >
223
224                 <TextView
225                         android:id="@+id/lat_label"
226                         android:layout_width="wrap_content"
227                         android:layout_height="wrap_content"
228                         android:text="@string/latitude_label" />
229
230                 <TextView
231                         android:id="@+id/lat_value"
232                         android:layout_width="wrap_content"
233                         android:layout_height="wrap_content"
234                         android:layout_alignParentRight="true"
235                         android:layout_below="@id/lat_label"
236                         android:text=""
237                         android:textAppearance="?android:attr/textAppearanceSmall" />
238         </RelativeLayout>
239
240         <RelativeLayout
241                 android:layout_width="wrap_content"
242                 android:layout_height="wrap_content"
243                 android:paddingTop="5dp" >
244
245                 <TextView
246                         android:id="@+id/lon_label"
247                         android:layout_width="wrap_content"
248                         android:layout_height="wrap_content"
249                         android:text="@string/longitude_label" />
250
251                 <TextView
252                         android:id="@+id/lon_value"
253                         android:layout_width="wrap_content"
254                         android:layout_height="wrap_content"
255                         android:layout_alignParentRight="true"
256                         android:layout_below="@id/lon_label"
257                         android:text=""
258                         android:textAppearance="?android:attr/textAppearanceSmall" />
259         </RelativeLayout>
260
261         <RelativeLayout
262                 android:layout_width="wrap_content"
263                 android:layout_height="wrap_content"
264                 android:paddingTop="5dp" >
265
266                 <ImageView
267                         android:id="@+id/apogee_redled"
268                         android:layout_width="wrap_content"
269                         android:layout_height="wrap_content"
270                         android:contentDescription="@string/apogee_voltage_label"
271                         android:src="@drawable/grayled" />
272
273                 <ImageView
274                         android:id="@+id/apogee_greenled"
275                         android:layout_width="wrap_content"
276                         android:layout_height="wrap_content"
277                         android:layout_toRightOf="@id/apogee_redled"
278                         android:contentDescription="@string/apogee_voltage_label"
279                         android:paddingRight="5dp"
280                         android:src="@drawable/grayled" />
281
282                 <TextView
283                         android:id="@+id/apogee_voltage_label"
284                         android:layout_width="wrap_content"
285                         android:layout_height="wrap_content"
286                         android:layout_toRightOf="@id/apogee_greenled"
287                         android:text="@string/apogee_voltage_label" />
288
289                 <TextView
290                         android:id="@+id/apogee_voltage_value"
291                         android:layout_width="wrap_content"
292                         android:layout_height="wrap_content"
293                         android:layout_alignParentRight="true"
294                         android:layout_below="@id/apogee_voltage_label"
295                         android:layout_toRightOf="@id/apogee_greenled"
296                         android:text=""
297                         android:textAppearance="?android:attr/textAppearanceSmall" />
298         </RelativeLayout>
299
300         <RelativeLayout
301                 android:layout_width="wrap_content"
302                 android:layout_height="wrap_content"
303                 android:paddingTop="5dp" >
304
305                 <ImageView
306                         android:id="@+id/main_redled"
307                         android:layout_width="wrap_content"
308                         android:layout_height="wrap_content"
309                         android:contentDescription="@string/main_voltage_label"
310                         android:src="@drawable/grayled" />
311
312                 <ImageView
313                         android:id="@+id/main_greenled"
314                         android:layout_width="wrap_content"
315                         android:layout_height="wrap_content"
316                         android:layout_toRightOf="@id/main_redled"
317                         android:contentDescription="@string/main_voltage_label"
318                         android:paddingRight="5dp"
319                         android:src="@drawable/grayled" />
320
321                 <TextView
322                         android:id="@+id/main_voltage_label"
323                         android:layout_width="wrap_content"
324                         android:layout_height="wrap_content"
325                         android:layout_toRightOf="@id/main_greenled"
326                         android:text="@string/main_voltage_label" />
327
328                 <TextView
329                         android:id="@+id/main_voltage_value"
330                         android:layout_width="wrap_content"
331                         android:layout_height="wrap_content"
332                         android:layout_alignParentRight="true"
333                         android:layout_below="@id/main_voltage_label"
334                         android:layout_toRightOf="@id/main_greenled"
335                         android:text=""
336                         android:textAppearance="?android:attr/textAppearanceSmall" />
337         </RelativeLayout>
338
339 </LinearLayout>