]> git.gag.com Git - fw/altos/blob - altosdroid/res/layout/altosdroid.xml
Fake thrust data as accel for now
[fw/altos] / altosdroid / res / layout / altosdroid.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3
4  Copyright © 2012-2013 Mike Beattie <mike@ethernal.org>
5
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10
11  This program is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  General Public License for more details.
15
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19
20 -->
21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22         android:layout_width="fill_parent"
23         android:layout_height="wrap_content"
24         android:layout_weight="0"
25         android:orientation="vertical" >
26
27         <LinearLayout
28                 xmlns:android="http://schemas.android.com/apk/res/android"
29                 android:layout_width="fill_parent"
30                 android:layout_height="wrap_content"
31                 android:layout_weight="0"
32                 android:baselineAligned="true"
33                 android:orientation="horizontal" >
34
35                 <RelativeLayout
36                         android:id="@+id/callsign_container"
37                         android:layout_width="0dp"
38                         android:layout_height="wrap_content"
39                         android:layout_weight="1" >
40
41                         <TextView
42                                 android:id="@+id/callsign_label"
43                                 android:layout_width="wrap_content"
44                                 android:layout_height="wrap_content"
45                                 android:text="@string/callsign_label" />
46
47                         <TextView
48                                 android:id="@+id/callsign_value"
49                                 android:layout_width="wrap_content"
50                                 android:layout_height="wrap_content"
51                                 android:layout_below="@+id/callsign_label"
52                                 android:text=""
53                                 android:textAppearance="?android:attr/textAppearanceSmall" />
54                 </RelativeLayout>
55
56                 <RelativeLayout
57                         android:id="@+id/serial_container"
58                         android:layout_width="0dp"
59                         android:layout_height="wrap_content"
60                         android:layout_weight="1" >
61
62                         <TextView
63                                 android:id="@+id/serial_label"
64                                 android:layout_width="wrap_content"
65                                 android:layout_height="wrap_content"
66                                 android:text="@string/serial_label" />
67
68                         <TextView
69                                 android:id="@+id/serial_value"
70                                 android:layout_width="wrap_content"
71                                 android:layout_height="wrap_content"
72                                 android:layout_below="@+id/serial_label"
73                                 android:textAppearance="?android:attr/textAppearanceSmall" />
74                 </RelativeLayout>
75
76                 <RelativeLayout
77                         android:id="@+id/flight_container"
78                         android:layout_width="0dp"
79                         android:layout_height="wrap_content"
80                         android:layout_weight="1" >
81
82                         <TextView
83                                 android:id="@+id/flight_label"
84                                 android:layout_width="wrap_content"
85                                 android:layout_height="wrap_content"
86                                 android:text="@string/flight_label" />
87
88                         <TextView
89                                 android:id="@+id/flight_value"
90                                 android:layout_width="wrap_content"
91                                 android:layout_height="wrap_content"
92                                 android:layout_below="@+id/flight_label"
93                                 android:textAppearance="?android:attr/textAppearanceSmall" />
94                 </RelativeLayout>
95
96                 <RelativeLayout
97                         android:id="@+id/state_container"
98                         android:layout_width="0dp"
99                         android:layout_height="wrap_content"
100                         android:layout_weight="1" >
101
102                         <TextView
103                                 android:id="@+id/state_label"
104                                 android:layout_width="wrap_content"
105                                 android:layout_height="wrap_content"
106                                 android:text="@string/state_label" />
107
108                         <TextView
109                                 android:id="@+id/state_value"
110                                 android:layout_width="wrap_content"
111                                 android:layout_height="wrap_content"
112                                 android:layout_below="@+id/state_label"
113                                 android:textAppearance="?android:attr/textAppearanceSmall" />
114                 </RelativeLayout>
115
116                 <RelativeLayout
117                         android:id="@+id/rssi_container"
118                         android:layout_width="0dp"
119                         android:layout_height="wrap_content"
120                         android:layout_weight="1" >
121
122                         <TextView
123                                 android:id="@+id/rssi_label"
124                                 android:layout_width="wrap_content"
125                                 android:layout_height="wrap_content"
126                                 android:text="@string/rssi_label" />
127
128                         <TextView
129                                 android:id="@+id/rssi_value"
130                                 android:layout_width="wrap_content"
131                                 android:layout_height="wrap_content"
132                                 android:layout_below="@+id/rssi_label"
133                                 android:textAppearance="?android:attr/textAppearanceSmall" />
134                 </RelativeLayout>
135
136                 <RelativeLayout
137                         android:id="@+id/age_container"
138                         android:layout_width="0dp"
139                         android:layout_height="wrap_content"
140                         android:layout_weight="1" >
141
142                         <TextView
143                                 android:id="@+id/age_label"
144                                 android:layout_width="wrap_content"
145                                 android:layout_height="wrap_content"
146                                 android:text="@string/age_label" />
147
148                         <TextView
149                                 android:id="@+id/age_value"
150                                 android:layout_width="wrap_content"
151                                 android:layout_height="wrap_content"
152                                 android:layout_below="@+id/age_label"
153                                 android:textAppearance="?android:attr/textAppearanceSmall" />
154                 </RelativeLayout>
155         </LinearLayout>
156
157         <TabHost
158                 xmlns:android="http://schemas.android.com/apk/res/android"
159                 android:id="@android:id/tabhost"
160                 android:layout_width="fill_parent"
161                 android:layout_height="0dp"
162                 android:layout_weight="1" >
163
164                 <LinearLayout
165                         android:layout_width="match_parent"
166                         android:layout_height="match_parent"
167                         android:orientation="vertical" >
168
169                         <TabWidget
170                                 android:id="@android:id/tabs"
171                                 android:layout_width="match_parent"
172                                 android:layout_height="wrap_content"
173                                 android:layout_weight="0"
174                                 android:orientation="horizontal" />
175
176                         <FrameLayout
177                                 android:id="@android:id/tabcontent"
178                                 android:layout_width="0dp"
179                                 android:layout_height="0dp"
180                                 android:layout_weight="0" />
181
182                         <org.altusmetrum.AltosDroid.AltosViewPager
183                                 android:id="@+id/pager"
184                                 android:layout_width="match_parent"
185                                 android:layout_height="0dp"
186                                 android:layout_weight="1" />
187                 </LinearLayout>
188         </TabHost>
189
190         <TextView
191                 android:id="@+id/version"
192                 android:layout_width="fill_parent"
193                 android:layout_height="10dip"
194                 android:layout_weight="0"
195                 android:gravity="bottom|right"
196                 android:textSize="7sp"
197                 android:typeface="monospace" />
198
199 </LinearLayout>