Merge remote-tracking branch 'mjb/altosdroid'
[fw/altos] / altosdroid / res / layout / tab_ascent.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                 android:paddingTop="5dp" >
31
32                 <RelativeLayout
33                         android:layout_width="0dp"
34                         android:layout_height="wrap_content"
35                         android:layout_weight="1" >
36
37                         <TextView
38                                 android:id="@+id/height_label"
39                                 android:layout_width="wrap_content"
40                                 android:layout_height="wrap_content"
41                                 android:text="@string/height_label" />
42
43                         <TextView
44                                 android:id="@+id/height_value"
45                                 android:layout_width="wrap_content"
46                                 android:layout_height="wrap_content"
47                                 android:layout_alignParentRight="true"
48                                 android:layout_below="@id/height_label"
49                                 android:text=""
50                                 android:textAppearance="?android:attr/textAppearanceLarge" />
51                 </RelativeLayout>
52
53                 <RelativeLayout
54                         android:layout_width="0dp"
55                         android:layout_height="wrap_content"
56                         android:layout_weight="1" >
57
58                         <TextView
59                                 android:id="@+id/max_height_label"
60                                 android:layout_width="wrap_content"
61                                 android:layout_height="wrap_content"
62                                 android:text="@string/max_height_label" />
63
64                         <TextView
65                                 android:id="@+id/max_height_value"
66                                 android:layout_width="wrap_content"
67                                 android:layout_height="wrap_content"
68                                 android:layout_alignParentRight="true"
69                                 android:layout_below="@id/max_height_label"
70                                 android:text=""
71                                 android:textAppearance="?android:attr/textAppearanceLarge" />
72                 </RelativeLayout>
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/speed_label"
91                                 android:layout_width="wrap_content"
92                                 android:layout_height="wrap_content"
93                                 android:text="@string/speed_label" />
94
95                         <TextView
96                                 android:id="@+id/speed_value"
97                                 android:layout_width="wrap_content"
98                                 android:layout_height="wrap_content"
99                                 android:layout_alignParentRight="true"
100                                 android:layout_below="@id/speed_label"
101                                 android:text=""
102                                 android:textAppearance="?android:attr/textAppearanceLarge" />
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/max_speed_label"
112                                 android:layout_width="wrap_content"
113                                 android:layout_height="wrap_content"
114                                 android:text="@string/max_speed_label" />
115
116                         <TextView
117                                 android:id="@+id/max_speed_value"
118                                 android:layout_width="wrap_content"
119                                 android:layout_height="wrap_content"
120                                 android:layout_alignParentRight="true"
121                                 android:layout_below="@id/max_speed_label"
122                                 android:text=""
123                                 android:textAppearance="?android:attr/textAppearanceLarge" />
124                 </RelativeLayout>
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/accel_label"
143                                 android:layout_width="wrap_content"
144                                 android:layout_height="wrap_content"
145                                 android:text="@string/accel_label" />
146
147                         <TextView
148                                 android:id="@+id/accel_value"
149                                 android:layout_width="wrap_content"
150                                 android:layout_height="wrap_content"
151                                 android:layout_alignParentRight="true"
152                                 android:layout_below="@id/accel_label"
153                                 android:text=""
154                                 android:textAppearance="?android:attr/textAppearanceLarge" />
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/max_accel_label"
164                                 android:layout_width="wrap_content"
165                                 android:layout_height="wrap_content"
166                                 android:text="@string/max_accel_label" />
167
168                         <TextView
169                                 android:id="@+id/max_accel_value"
170                                 android:layout_width="wrap_content"
171                                 android:layout_height="wrap_content"
172                                 android:layout_alignParentRight="true"
173                                 android:layout_below="@id/max_accel_label"
174                                 android:text=""
175                                 android:textAppearance="?android:attr/textAppearanceLarge" />
176                 </RelativeLayout>
177         </LinearLayout>
178
179         <RelativeLayout
180                 android:layout_width="wrap_content"
181                 android:layout_height="wrap_content"
182                 android:paddingTop="5dp" >
183
184                 <TextView
185                         android:id="@+id/lat_label"
186                         android:layout_width="wrap_content"
187                         android:layout_height="wrap_content"
188                         android:text="@string/latitude_label" />
189
190                 <TextView
191                         android:id="@+id/lat_value"
192                         android:layout_width="wrap_content"
193                         android:layout_height="wrap_content"
194                         android:layout_alignParentRight="true"
195                         android:layout_below="@id/lat_label"
196                         android:text=""
197                         android:textAppearance="?android:attr/textAppearanceLarge" />
198         </RelativeLayout>
199
200         <RelativeLayout
201                 android:layout_width="wrap_content"
202                 android:layout_height="wrap_content"
203                 android:paddingTop="5dp" >
204
205                 <TextView
206                         android:id="@+id/lon_label"
207                         android:layout_width="wrap_content"
208                         android:layout_height="wrap_content"
209                         android:text="@string/longitude_label" />
210
211                 <TextView
212                         android:id="@+id/lon_value"
213                         android:layout_width="wrap_content"
214                         android:layout_height="wrap_content"
215                         android:layout_alignParentRight="true"
216                         android:layout_below="@id/lon_label"
217                         android:text=""
218                         android:textAppearance="?android:attr/textAppearanceLarge" />
219         </RelativeLayout>
220
221         <RelativeLayout
222                 android:layout_width="wrap_content"
223                 android:layout_height="wrap_content"
224                 android:paddingTop="5dp" >
225
226                 <ImageView
227                         android:id="@+id/apogee_redled"
228                         android:layout_width="wrap_content"
229                         android:layout_height="wrap_content"
230                         android:contentDescription="@string/apogee_voltage_label"
231                         android:src="@drawable/redled" />
232
233                 <ImageView
234                         android:id="@+id/apogee_greenled"
235                         android:layout_width="wrap_content"
236                         android:layout_height="wrap_content"
237                         android:layout_toRightOf="@id/apogee_redled"
238                         android:contentDescription="@string/apogee_voltage_label"
239                         android:paddingRight="5dp"
240                         android:src="@drawable/grayled" />
241
242                 <TextView
243                         android:id="@+id/apogee_voltage_label"
244                         android:layout_width="wrap_content"
245                         android:layout_height="wrap_content"
246                         android:layout_toRightOf="@id/apogee_greenled"
247                         android:text="@string/apogee_voltage_label" />
248
249                 <TextView
250                         android:id="@+id/apogee_voltage_value"
251                         android:layout_width="wrap_content"
252                         android:layout_height="wrap_content"
253                         android:layout_alignParentRight="true"
254                         android:layout_below="@id/apogee_voltage_label"
255                         android:layout_toRightOf="@id/apogee_greenled"
256                         android:text=""
257                         android:textAppearance="?android:attr/textAppearanceLarge" />
258         </RelativeLayout>
259
260         <RelativeLayout
261                 android:layout_width="wrap_content"
262                 android:layout_height="wrap_content"
263                 android:paddingTop="5dp" >
264
265                 <ImageView
266                         android:id="@+id/main_redled"
267                         android:layout_width="wrap_content"
268                         android:layout_height="wrap_content"
269                         android:contentDescription="@string/main_voltage_label"
270                         android:src="@drawable/redled" />
271
272                 <ImageView
273                         android:id="@+id/main_greenled"
274                         android:layout_width="wrap_content"
275                         android:layout_height="wrap_content"
276                         android:layout_toRightOf="@id/main_redled"
277                         android:contentDescription="@string/main_voltage_label"
278                         android:paddingRight="5dp"
279                         android:src="@drawable/grayled" />
280
281                 <TextView
282                         android:id="@+id/main_voltage_label"
283                         android:layout_width="wrap_content"
284                         android:layout_height="wrap_content"
285                         android:layout_toRightOf="@id/main_greenled"
286                         android:text="@string/main_voltage_label" />
287
288                 <TextView
289                         android:id="@+id/main_voltage_value"
290                         android:layout_width="wrap_content"
291                         android:layout_height="wrap_content"
292                         android:layout_alignParentRight="true"
293                         android:layout_below="@id/main_voltage_label"
294                         android:layout_toRightOf="@id/main_greenled"
295                         android:text=""
296                         android:textAppearance="?android:attr/textAppearanceLarge" />
297         </RelativeLayout>
298
299 </LinearLayout>