b653aa2e68fa35cf6571c47c9179d97d51a7f35b
[fw/altos] / altosdroid / res / layout / altosdroid.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3          Copyright © 2012-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         <LinearLayout
25                 xmlns:android="http://schemas.android.com/apk/res/android"
26                 android:layout_width="fill_parent"
27                 android:layout_height="wrap_content"
28                 android:layout_weight="0"
29                 android:baselineAligned="true"
30                 android:orientation="horizontal" >
31
32                 <RelativeLayout
33                         android:id="@+id/callsign_container"
34                         android:layout_width="0dp"
35                         android:layout_height="wrap_content"
36                         android:layout_weight="1" >
37
38                         <TextView
39                                 android:id="@+id/callsign_label"
40                                 android:layout_width="wrap_content"
41                                 android:layout_height="wrap_content"
42                                 android:text="@string/callsign_label" />
43
44                         <TextView
45                                 android:id="@+id/callsign_value"
46                                 android:layout_width="wrap_content"
47                                 android:layout_height="wrap_content"
48                                 android:layout_below="@+id/callsign_label"
49                                 android:text=""
50                                 android:textAppearance="?android:attr/textAppearanceMedium" />
51                 </RelativeLayout>
52
53                 <RelativeLayout
54                         android:id="@+id/serial_container"
55                         android:layout_width="0dp"
56                         android:layout_height="wrap_content"
57                         android:layout_weight="1" >
58
59                         <TextView
60                                 android:id="@+id/serial_label"
61                                 android:layout_width="wrap_content"
62                                 android:layout_height="wrap_content"
63                                 android:text="@string/serial_label" />
64
65                         <TextView
66                                 android:id="@+id/serial_value"
67                                 android:layout_width="wrap_content"
68                                 android:layout_height="wrap_content"
69                                 android:layout_below="@+id/serial_label"
70                                 android:textAppearance="?android:attr/textAppearanceMedium" />
71                 </RelativeLayout>
72
73                 <RelativeLayout
74                         android:id="@+id/flight_container"
75                         android:layout_width="0dp"
76                         android:layout_height="wrap_content"
77                         android:layout_weight="1" >
78
79                         <TextView
80                                 android:id="@+id/flight_label"
81                                 android:layout_width="wrap_content"
82                                 android:layout_height="wrap_content"
83                                 android:text="@string/flight_label" />
84
85                         <TextView
86                                 android:id="@+id/flight_value"
87                                 android:layout_width="wrap_content"
88                                 android:layout_height="wrap_content"
89                                 android:layout_below="@+id/flight_label"
90                                 android:textAppearance="?android:attr/textAppearanceMedium" />
91                 </RelativeLayout>
92
93                 <RelativeLayout
94                         android:id="@+id/state_container"
95                         android:layout_width="0dp"
96                         android:layout_height="wrap_content"
97                         android:layout_weight="1" >
98
99                         <TextView
100                                 android:id="@+id/state_label"
101                                 android:layout_width="wrap_content"
102                                 android:layout_height="wrap_content"
103                                 android:text="@string/state_label" />
104
105                         <TextView
106                                 android:id="@+id/state_value"
107                                 android:layout_width="wrap_content"
108                                 android:layout_height="wrap_content"
109                                 android:layout_below="@+id/state_label"
110                                 android:textAppearance="?android:attr/textAppearanceMedium" />
111                 </RelativeLayout>
112
113                 <RelativeLayout
114                         android:id="@+id/rssi_container"
115                         android:layout_width="0dp"
116                         android:layout_height="wrap_content"
117                         android:layout_weight="1" >
118
119                         <TextView
120                                 android:id="@+id/rssi_label"
121                                 android:layout_width="wrap_content"
122                                 android:layout_height="wrap_content"
123                                 android:text="@string/rssi_label" />
124
125                         <TextView
126                                 android:id="@+id/rssi_value"
127                                 android:layout_width="wrap_content"
128                                 android:layout_height="wrap_content"
129                                 android:layout_below="@+id/rssi_label"
130                                 android:textAppearance="?android:attr/textAppearanceMedium" />
131                 </RelativeLayout>
132
133                 <RelativeLayout
134                         android:id="@+id/age_container"
135                         android:layout_width="0dp"
136                         android:layout_height="wrap_content"
137                         android:layout_weight="1" >
138
139                         <TextView
140                                 android:id="@+id/age_label"
141                                 android:layout_width="wrap_content"
142                                 android:layout_height="wrap_content"
143                                 android:text="@string/age_label" />
144
145                         <TextView
146                                 android:id="@+id/age_value"
147                                 android:layout_width="wrap_content"
148                                 android:layout_height="wrap_content"
149                                 android:layout_below="@+id/age_label"
150                                 android:textAppearance="?android:attr/textAppearanceMedium" />
151                 </RelativeLayout>
152         </LinearLayout>
153
154         <TabHost
155                 xmlns:android="http://schemas.android.com/apk/res/android"
156                 android:id="@android:id/tabhost"
157                 android:layout_width="fill_parent"
158                 android:layout_height="0dp"
159                 android:layout_weight="1" >
160
161                 <LinearLayout
162                         android:layout_width="match_parent"
163                         android:layout_height="match_parent"
164                         android:orientation="vertical" >
165
166                         <TabWidget
167                                 android:id="@android:id/tabs"
168                                 android:layout_width="match_parent"
169                                 android:layout_height="wrap_content"
170                                 android:layout_weight="0"
171                                 android:orientation="horizontal" />
172
173                         <FrameLayout
174                                 android:id="@android:id/tabcontent"
175                                 android:layout_width="0dp"
176                                 android:layout_height="0dp"
177                                 android:layout_weight="0" />
178
179                         <org.altusmetrum.AltosDroid.AltosViewPager
180                                 android:id="@+id/pager"
181                                 android:layout_width="match_parent"
182                                 android:layout_height="0dp"
183                                 android:layout_weight="1" />
184                 </LinearLayout>
185         </TabHost>
186
187         <TextView
188                 android:id="@+id/version"
189                 android:layout_width="fill_parent"
190                 android:layout_height="10dip"
191                 android:layout_weight="0"
192                 android:gravity="bottom|right"
193                 android:textSize="7sp"
194                 android:typeface="monospace" />
195
196 </LinearLayout>