380eab9104402bd5ad6d159f3b0d7f0c6cb81ee5
[fw/altos] / altosdroid / res / layout / tab_pad.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:layout_weight="0"
22         android:orientation="vertical" >
23
24         <RelativeLayout
25                 android:layout_width="wrap_content"
26                 android:layout_height="wrap_content" >
27
28                 <ImageView
29                         android:id="@+id/battery_redled"
30                         android:layout_width="wrap_content"
31                         android:layout_height="wrap_content"
32                         android:contentDescription="@string/battery_voltage_label"
33                         android:src="@drawable/grayled" />
34
35                 <ImageView
36                         android:id="@+id/battery_greenled"
37                         android:layout_width="wrap_content"
38                         android:layout_height="wrap_content"
39                         android:layout_toRightOf="@id/battery_redled"
40                         android:contentDescription="@string/battery_voltage_label"
41                         android:paddingRight="5dp"
42                         android:src="@drawable/grayled" />
43
44                 <TextView
45                         android:id="@+id/battery_voltage_label"
46                         android:layout_width="wrap_content"
47                         android:layout_height="wrap_content"
48                         android:layout_toRightOf="@id/battery_greenled"
49                         android:text="@string/battery_voltage_label" />
50
51                 <TextView
52                         android:id="@+id/battery_voltage_value"
53                         android:layout_width="wrap_content"
54                         android:layout_height="wrap_content"
55                         android:layout_below="@id/battery_voltage_label"
56                         android:layout_toRightOf="@id/battery_greenled"
57                         android:text=""
58                         android:textAppearance="?android:attr/textAppearanceSmall" />
59         </RelativeLayout>
60
61         <RelativeLayout
62                 android:layout_width="wrap_content"
63                 android:layout_height="wrap_content" >
64
65                 <ImageView
66                         android:id="@+id/receiver_redled"
67                         android:layout_width="wrap_content"
68                         android:layout_height="wrap_content"
69                         android:contentDescription="@string/receiver_voltage_label"
70                         android:src="@drawable/grayled" />
71
72                 <ImageView
73                         android:id="@+id/receiver_greenled"
74                         android:layout_width="wrap_content"
75                         android:layout_height="wrap_content"
76                         android:layout_toRightOf="@id/receiver_redled"
77                         android:contentDescription="@string/receiver_voltage_label"
78                         android:paddingRight="5dp"
79                         android:src="@drawable/grayled" />
80
81                 <TextView
82                         android:id="@+id/receiver_voltage_label"
83                         android:layout_width="wrap_content"
84                         android:layout_height="wrap_content"
85                         android:layout_toRightOf="@id/receiver_greenled"
86                         android:text="@string/receiver_voltage_label" />
87
88                 <TextView
89                         android:id="@+id/receiver_voltage_value"
90                         android:layout_width="wrap_content"
91                         android:layout_height="wrap_content"
92                         android:layout_below="@id/receiver_voltage_label"
93                         android:layout_toRightOf="@id/receiver_greenled"
94                         android:text=""
95                         android:textAppearance="?android:attr/textAppearanceSmall" />
96         </RelativeLayout>
97
98         <RelativeLayout
99                 android:layout_width="wrap_content"
100                 android:layout_height="wrap_content"
101                 android:paddingTop="5dp" >
102
103                 <ImageView
104                         android:id="@+id/apogee_redled"
105                         android:layout_width="wrap_content"
106                         android:layout_height="wrap_content"
107                         android:contentDescription="@string/apogee_voltage_label"
108                         android:src="@drawable/grayled" />
109
110                 <ImageView
111                         android:id="@+id/apogee_greenled"
112                         android:layout_width="wrap_content"
113                         android:layout_height="wrap_content"
114                         android:layout_toRightOf="@id/apogee_redled"
115                         android:contentDescription="@string/apogee_voltage_label"
116                         android:paddingRight="5dp"
117                         android:src="@drawable/grayled" />
118
119                 <TextView
120                         android:id="@+id/apogee_voltage_label"
121                         android:layout_width="wrap_content"
122                         android:layout_height="wrap_content"
123                         android:layout_toRightOf="@id/apogee_greenled"
124                         android:text="@string/apogee_voltage_label" />
125
126                 <TextView
127                         android:id="@+id/apogee_voltage_value"
128                         android:layout_width="wrap_content"
129                         android:layout_height="wrap_content"
130                         android:layout_below="@id/apogee_voltage_label"
131                         android:layout_toRightOf="@id/apogee_greenled"
132                         android:text=""
133                         android:textAppearance="?android:attr/textAppearanceSmall" />
134         </RelativeLayout>
135
136         <RelativeLayout
137                 android:layout_width="wrap_content"
138                 android:layout_height="wrap_content"
139                 android:paddingTop="5dp" >
140
141                 <ImageView
142                         android:id="@+id/main_redled"
143                         android:layout_width="wrap_content"
144                         android:layout_height="wrap_content"
145                         android:contentDescription="@string/main_voltage_label"
146                         android:src="@drawable/grayled" />
147
148                 <ImageView
149                         android:id="@+id/main_greenled"
150                         android:layout_width="wrap_content"
151                         android:layout_height="wrap_content"
152                         android:layout_toRightOf="@id/main_redled"
153                         android:contentDescription="@string/main_voltage_label"
154                         android:paddingRight="5dp"
155                         android:src="@drawable/grayled" />
156
157                 <TextView
158                         android:id="@+id/main_voltage_label"
159                         android:layout_width="wrap_content"
160                         android:layout_height="wrap_content"
161                         android:layout_toRightOf="@id/main_greenled"
162                         android:text="@string/main_voltage_label" />
163
164                 <TextView
165                         android:id="@+id/main_voltage_value"
166                         android:layout_width="wrap_content"
167                         android:layout_height="wrap_content"
168                         android:layout_below="@id/main_voltage_label"
169                         android:layout_toRightOf="@id/main_greenled"
170                         android:text=""
171                         android:textAppearance="?android:attr/textAppearanceSmall" />
172         </RelativeLayout>
173
174         <RelativeLayout
175                 android:layout_width="wrap_content"
176                 android:layout_height="wrap_content"
177                 android:paddingTop="5dp" >
178
179                 <ImageView
180                         android:id="@+id/logging_redled"
181                         android:layout_width="wrap_content"
182                         android:layout_height="wrap_content"
183                         android:contentDescription="@string/logging_label"
184                         android:src="@drawable/grayled" />
185
186                 <ImageView
187                         android:id="@+id/logging_greenled"
188                         android:layout_width="wrap_content"
189                         android:layout_height="wrap_content"
190                         android:layout_toRightOf="@id/logging_redled"
191                         android:contentDescription="@string/logging_label"
192                         android:paddingRight="5dp"
193                         android:src="@drawable/grayled" />
194
195                 <TextView
196                         android:id="@+id/logging_label"
197                         android:layout_width="wrap_content"
198                         android:layout_height="wrap_content"
199                         android:layout_toRightOf="@id/logging_greenled"
200                         android:text="@string/logging_label" />
201
202                 <TextView
203                         android:id="@+id/logging_value"
204                         android:layout_width="wrap_content"
205                         android:layout_height="wrap_content"
206                         android:layout_below="@id/logging_label"
207                         android:layout_toRightOf="@id/logging_greenled"
208                         android:text=""
209                         android:textAppearance="?android:attr/textAppearanceSmall" />
210         </RelativeLayout>
211
212         <RelativeLayout
213                 android:layout_width="wrap_content"
214                 android:layout_height="wrap_content"
215                 android:paddingTop="5dp" >
216
217                 <ImageView
218                         android:id="@+id/gps_locked_redled"
219                         android:layout_width="wrap_content"
220                         android:layout_height="wrap_content"
221                         android:contentDescription="@string/gps_locked_label"
222                         android:src="@drawable/grayled" />
223
224                 <ImageView
225                         android:id="@+id/gps_locked_greenled"
226                         android:layout_width="wrap_content"
227                         android:layout_height="wrap_content"
228                         android:layout_toRightOf="@id/gps_locked_redled"
229                         android:contentDescription="@string/gps_locked_label"
230                         android:paddingRight="5dp"
231                         android:src="@drawable/grayled" />
232
233                 <TextView
234                         android:id="@+id/gps_locked_label"
235                         android:layout_width="wrap_content"
236                         android:layout_height="wrap_content"
237                         android:layout_toRightOf="@id/gps_locked_greenled"
238                         android:text="@string/gps_locked_label" />
239
240                 <TextView
241                         android:id="@+id/gps_locked_value"
242                         android:layout_width="wrap_content"
243                         android:layout_height="wrap_content"
244                         android:layout_below="@id/gps_locked_label"
245                         android:layout_toRightOf="@id/gps_locked_greenled"
246                         android:text=""
247                         android:textAppearance="?android:attr/textAppearanceSmall" />
248         </RelativeLayout>
249
250         <RelativeLayout
251                 android:layout_width="wrap_content"
252                 android:layout_height="wrap_content"
253                 android:paddingTop="5dp" >
254
255                 <ImageView
256                         android:id="@+id/gps_ready_redled"
257                         android:layout_width="wrap_content"
258                         android:layout_height="wrap_content"
259                         android:contentDescription="@string/gps_ready_label"
260                         android:src="@drawable/grayled" />
261
262                 <ImageView
263                         android:id="@+id/gps_ready_greenled"
264                         android:layout_width="wrap_content"
265                         android:layout_height="wrap_content"
266                         android:layout_toRightOf="@id/gps_ready_redled"
267                         android:contentDescription="@string/gps_ready_label"
268                         android:paddingRight="5dp"
269                         android:src="@drawable/grayled" />
270
271                 <TextView
272                         android:id="@+id/gps_ready_label"
273                         android:layout_width="wrap_content"
274                         android:layout_height="wrap_content"
275                         android:layout_toRightOf="@id/gps_ready_greenled"
276                         android:text="@string/gps_ready_label" />
277
278                 <TextView
279                         android:id="@+id/gps_ready_value"
280                         android:layout_width="wrap_content"
281                         android:layout_height="wrap_content"
282                         android:layout_below="@id/gps_ready_label"
283                         android:layout_toRightOf="@id/gps_ready_greenled"
284                         android:text=""
285                         android:textAppearance="?android:attr/textAppearanceSmall" />
286         </RelativeLayout>
287
288         <RelativeLayout
289                 android:layout_width="wrap_content"
290                 android:layout_height="wrap_content"
291                 android:paddingLeft="69dp">
292
293                 <TextView
294                         android:id="@+id/pad_lat_label"
295                         android:layout_width="wrap_content"
296                         android:layout_height="wrap_content"
297                         android:width="100sp"
298                         android:paddingRight="10sp"
299                         android:layout_toRightOf="@id/gps_ready_greenled"
300                         android:text="@string/pad_lat_label" />
301
302                 <TextView
303                         android:id="@+id/pad_lat_value"
304                         android:layout_width="wrap_content"
305                         android:layout_height="wrap_content"
306                         android:layout_toRightOf="@id/pad_lat_label"
307                         android:text=""
308                         android:textAppearance="?android:attr/textAppearanceSmall" />
309         </RelativeLayout>
310
311         <RelativeLayout
312                 android:layout_width="wrap_content"
313                 android:layout_height="wrap_content"
314                 android:paddingLeft="69dp">
315
316                 <TextView
317                         android:id="@+id/pad_lon_label"
318                         android:layout_width="wrap_content"
319                         android:layout_height="wrap_content"
320                         android:width="100sp"
321                         android:paddingRight="10sp"
322                         android:layout_toRightOf="@id/gps_ready_greenled"
323                         android:text="@string/pad_lon_label" />
324
325                 <TextView
326                         android:id="@+id/pad_lon_value"
327                         android:layout_width="wrap_content"
328                         android:layout_height="wrap_content"
329                         android:layout_toRightOf="@id/pad_lon_label"
330                         android:text=""
331                         android:textAppearance="?android:attr/textAppearanceSmall" />
332         </RelativeLayout>
333
334         <RelativeLayout
335                 android:layout_width="wrap_content"
336                 android:layout_height="wrap_content"
337                 android:paddingLeft="69dp">
338
339                 <TextView
340                         android:id="@+id/pad_alt_label"
341                         android:layout_width="wrap_content"
342                         android:layout_height="wrap_content"
343                         android:width="100sp"
344                         android:paddingRight="10sp"
345                         android:layout_toRightOf="@id/gps_ready_greenled"
346                         android:text="@string/pad_alt_label" />
347
348                 <TextView
349                         android:id="@+id/pad_alt_value"
350                         android:layout_width="wrap_content"
351                         android:layout_height="wrap_content"
352                         android:layout_toRightOf="@id/pad_alt_label"
353                         android:text=""
354                         android:textAppearance="?android:attr/textAppearanceSmall" />
355         </RelativeLayout>
356
357 </LinearLayout>