952abd494dd80066fb6c276c6796986491f03299
[fw/altos] / altosdroid / res / layout / tab_map.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="match_parent"
20         android:layout_height="match_parent"
21         android:orientation="vertical" >
22
23   <FrameLayout
24       android:layout_width="fill_parent"
25       android:layout_height="wrap_content"
26       android:baselineAligned="true"
27       android:orientation="horizontal"
28       android:layout_weight="1">
29
30     <LinearLayout
31         android:id="@+id/map_online"
32         android:orientation="horizontal"
33         android:layout_width="fill_parent"
34         android:layout_height="fill_parent"
35         android:layout_weight="1">
36     </LinearLayout>
37
38     <org.altusmetrum.AltosDroid.AltosMapOffline
39         android:id="@+id/map_offline"
40         android:layout_width="fill_parent"
41         android:layout_height="wrap_content"
42         android:layout_weight="1"/>
43   </FrameLayout>
44   
45   <LinearLayout
46       xmlns:android="http://schemas.android.com/apk/res/android"
47       android:layout_width="fill_parent"
48       android:layout_height="wrap_content"
49       android:baselineAligned="true"
50       android:orientation="horizontal" >
51
52     <RelativeLayout
53         android:layout_width="0dp"
54         android:layout_height="wrap_content"
55         android:layout_weight="1"
56         android:paddingTop="5dp" >
57
58       <TextView
59           android:id="@+id/distance_label"
60           android:layout_width="wrap_content"
61           android:layout_height="wrap_content"
62           android:paddingRight="4dp"
63           android:text="@string/distance_label" />
64
65       <TextView
66           android:id="@+id/distance_value"
67           android:layout_width="wrap_content"
68           android:layout_height="wrap_content"
69           android:layout_toRightOf="@id/distance_label"
70           android:text=""
71           android:textAppearance="?android:attr/textAppearanceSmall" />
72     </RelativeLayout>
73
74     <RelativeLayout
75         android:layout_width="0dp"
76         android:layout_height="wrap_content"
77         android:layout_weight="1"
78         android:paddingTop="5dp" >
79
80       <TextView
81           android:id="@+id/bearing_label"
82           android:layout_width="wrap_content"
83           android:layout_height="wrap_content"
84           android:paddingRight="4dp"
85           android:text="@string/bearing_label" />
86
87       <TextView
88           android:id="@+id/bearing_value"
89           android:layout_width="wrap_content"
90           android:layout_height="wrap_content"
91           android:layout_toRightOf="@id/bearing_label"
92           android:text=""
93           android:textAppearance="?android:attr/textAppearanceSmall" />
94     </RelativeLayout>
95
96   </LinearLayout>
97
98   <LinearLayout
99       xmlns:android="http://schemas.android.com/apk/res/android"
100       android:layout_width="fill_parent"
101       android:layout_height="wrap_content"
102       android:baselineAligned="true"
103       android:orientation="horizontal" >
104
105     <RelativeLayout
106         android:layout_width="0dp"
107         android:layout_height="wrap_content"
108         android:layout_weight="1"
109         android:paddingTop="5dp" >
110
111       <TextView
112           android:id="@+id/target_lat_label"
113           android:layout_width="wrap_content"
114           android:layout_height="wrap_content"
115           android:paddingRight="4dp"
116           android:text="@string/target_latitude_label" />
117
118       <TextView
119           android:id="@+id/target_lat_value"
120           android:layout_width="wrap_content"
121           android:layout_height="wrap_content"
122           android:layout_toRightOf="@id/target_lat_label"
123           android:text=""
124           android:textAppearance="?android:attr/textAppearanceSmall" />
125     </RelativeLayout>
126
127     <RelativeLayout
128         android:layout_width="0dp"
129         android:layout_height="wrap_content"
130         android:layout_weight="1"
131         android:paddingTop="5dp" >
132
133       <TextView
134           android:id="@+id/target_lon_label"
135           android:layout_width="wrap_content"
136           android:layout_height="wrap_content"
137           android:paddingRight="4dp"
138           android:text="@string/target_longitude_label" />
139
140       <TextView
141           android:id="@+id/target_lon_value"
142           android:layout_width="wrap_content"
143           android:layout_height="wrap_content"
144           android:layout_toRightOf="@id/target_lon_label"
145           android:text=""
146           android:textAppearance="?android:attr/textAppearanceSmall" />
147     </RelativeLayout>
148   </LinearLayout>
149
150   <LinearLayout
151       xmlns:android="http://schemas.android.com/apk/res/android"
152       android:layout_width="fill_parent"
153       android:layout_height="wrap_content"
154       android:baselineAligned="true"
155       android:orientation="horizontal" >
156
157     <RelativeLayout
158         android:layout_width="0dp"
159         android:layout_height="wrap_content"
160         android:layout_weight="1"
161         android:paddingTop="5dp" >
162
163       <TextView
164           android:id="@+id/receiver_lat_label"
165           android:layout_width="wrap_content"
166           android:layout_height="wrap_content"
167           android:paddingRight="4dp"
168           android:text="@string/receiver_latitude_label" />
169
170       <TextView
171           android:id="@+id/receiver_lat_value"
172           android:layout_width="wrap_content"
173           android:layout_height="wrap_content"
174           android:layout_toRightOf="@id/receiver_lat_label"
175           android:text=""
176           android:textAppearance="?android:attr/textAppearanceSmall" />
177     </RelativeLayout>
178
179     <RelativeLayout
180         android:layout_width="0dp"
181         android:layout_height="wrap_content"
182         android:layout_weight="1"
183         android:paddingTop="5dp" >
184
185       <TextView
186           android:id="@+id/receiver_lon_label"
187           android:layout_width="wrap_content"
188           android:layout_height="wrap_content"
189           android:paddingRight="4dp"
190           android:text="@string/receiver_longitude_label" />
191
192       <TextView
193           android:id="@+id/receiver_lon_value"
194           android:layout_width="wrap_content"
195           android:layout_height="wrap_content"
196           android:layout_toRightOf="@id/receiver_lon_label"
197           android:text=""
198           android:textAppearance="?android:attr/textAppearanceSmall" />
199     </RelativeLayout>
200   </LinearLayout>
201 </LinearLayout>