altosui/altosdroid: Disable offline map type selections
[fw/altos] / altosdroid / res / layout / map_preload.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   Copyright © 2015 Keith Packard <keithp@keithp.com>
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; either version 2 of the License, or
8   (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful, but
11   WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   General Public License for more details.
14
15   You should have received a copy of the GNU General Public License along
16   with this program; if not, write to the Free Software Foundation, Inc.,
17   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20     android:orientation="vertical"
21     android:layout_width="match_parent"
22     android:layout_height="match_parent"
23     >
24   <ScrollView android:layout_width="fill_parent"
25               android:layout_height="wrap_content">
26     <LinearLayout android:layout_width="wrap_content"
27                   android:layout_height="wrap_content"
28                   android:orientation="vertical">
29       <TextView android:id="@+id/preload_site_label"
30                 android:layout_width="fill_parent"
31                 android:layout_height="wrap_content"
32                 android:text="@string/preload_site_label"
33                 />
34       <Spinner android:id="@+id/preload_site_list"
35                android:layout_width="fill_parent"
36                android:layout_height="wrap_content"
37                android:prompt="@string/preload_site_label"
38                android:spinnerMode="dropdown"
39                />
40       <TextView android:id="@+id/preload_latitude_label"
41                 android:layout_width="fill_parent"
42                 android:layout_height="wrap_content"
43                 android:text="@string/preload_latitude_label"
44                 />
45       <EditText android:id="@+id/preload_latitude"
46                 android:layout_width="fill_parent"
47                 android:layout_height="wrap_content"
48                 android:hint="@string/preload_latitude_label"
49                 android:inputType="number|numberSigned|numberDecimal"/>
50       <TextView android:id="@+id/preload_longitude_label"
51                 android:layout_width="fill_parent"
52                 android:layout_height="wrap_content"
53                 android:text="@string/preload_longitude_label"
54                 />
55       <EditText android:id="@+id/preload_longitude"
56                 android:layout_width="fill_parent"
57                 android:layout_height="wrap_content"
58                 android:hint="@string/preload_longitude_label"
59                 android:inputType="number|numberSigned|numberDecimal"/>
60       <TextView android:id="@+id/preload_types"
61                 android:layout_width="fill_parent"
62                 android:layout_height="wrap_content"
63                 android:text="@string/preload_types"
64                 />
65 <!--
66       <CheckBox android:id="@+id/preload_hybrid"
67                 android:layout_width="fill_parent"
68                 android:layout_height="wrap_content"
69                 android:text="@string/preload_hybrid"
70                 />
71       <CheckBox android:id="@+id/preload_satellite"
72                 android:layout_width="fill_parent"
73                 android:layout_height="wrap_content"
74                 android:text="@string/preload_satellite"
75                 />
76       <CheckBox android:id="@+id/preload_roadmap"
77                 android:layout_width="fill_parent"
78                 android:layout_height="wrap_content"
79                 android:text="@string/preload_roadmap"
80                 />
81       <CheckBox android:id="@+id/preload_terrain"
82                 android:layout_width="fill_parent"
83                 android:layout_height="wrap_content"
84                 android:text="@string/preload_terrain"
85                 />
86 -->
87       <TextView android:id="@+id/preload_min_zoom_label"
88                 android:layout_width="fill_parent"
89                 android:layout_height="wrap_content"
90                 android:text="@string/preload_min_zoom"
91                 />
92       <Spinner android:id="@+id/preload_min_zoom"
93                android:layout_width="fill_parent"
94                android:layout_height="wrap_content"
95                android:prompt="@string/preload_min_zoom"
96                android:spinnerMode="dropdown"
97                />
98       <TextView android:id="@+id/preload_max_zoom_label"
99                 android:layout_width="fill_parent"
100                 android:layout_height="wrap_content"
101                 android:text="@string/preload_max_zoom"
102                 />
103       <Spinner android:id="@+id/preload_max_zoom"
104                android:layout_width="fill_parent"
105                android:layout_height="wrap_content"
106                android:prompt="@string/preload_max_zoom"
107                android:spinnerMode="dropdown"
108                />
109       <TextView android:id="@+id/preload_radius_label"
110                 android:layout_width="fill_parent"
111                 android:layout_height="wrap_content"
112                 android:text="@string/preload_radius"
113                 />
114       <Spinner android:id="@+id/preload_radius"
115                android:layout_width="fill_parent"
116                android:layout_height="wrap_content"
117                android:prompt="@string/preload_radius"
118                android:spinnerMode="dropdown"
119                />
120       <Button android:id="@+id/preload_load"
121               android:layout_width="match_parent"
122               android:layout_height="wrap_content"
123               android:text="@string/preload_load"
124               />
125       <ProgressBar android:id="@+id/preload_progress"
126                    android:layout_width="match_parent"
127                    android:layout_height="wrap_content"
128                    style="@android:style/Widget.ProgressBar.Horizontal"
129                    />
130     </LinearLayout>
131   </ScrollView>
132 </LinearLayout>