e8b0f26c2596b891f6982aa105d7817795ce0c4e
[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; 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:orientation="vertical"
20     android:layout_width="match_parent"
21     android:layout_height="match_parent"
22     >
23   <ScrollView android:layout_width="fill_parent"
24               android:layout_height="wrap_content">
25     <LinearLayout android:layout_width="wrap_content"
26                   android:layout_height="wrap_content"
27                   android:orientation="vertical">
28       <TextView android:id="@+id/preload_site_label"
29                 android:layout_width="fill_parent"
30                 android:layout_height="wrap_content"
31                 android:text="@string/preload_site_label"
32                 />
33       <Spinner android:id="@+id/preload_site_list"
34                android:layout_width="fill_parent"
35                android:layout_height="wrap_content"
36                android:prompt="@string/preload_site_label"
37                android:spinnerMode="dropdown"
38                />
39       <TextView android:id="@+id/preload_latitude_label"
40                 android:layout_width="fill_parent"
41                 android:layout_height="wrap_content"
42                 android:text="@string/preload_latitude_label"
43                 />
44       <EditText android:id="@+id/preload_latitude"
45                 android:layout_width="fill_parent"
46                 android:layout_height="wrap_content"
47                 android:hint="@string/preload_latitude_label"
48                 android:inputType="number|numberSigned|numberDecimal"/>
49       <TextView android:id="@+id/preload_longitude_label"
50                 android:layout_width="fill_parent"
51                 android:layout_height="wrap_content"
52                 android:text="@string/preload_longitude_label"
53                 />
54       <EditText android:id="@+id/preload_longitude"
55                 android:layout_width="fill_parent"
56                 android:layout_height="wrap_content"
57                 android:hint="@string/preload_longitude_label"
58                 android:inputType="number|numberSigned|numberDecimal"/>
59       <TextView android:id="@+id/preload_types"
60                 android:layout_width="fill_parent"
61                 android:layout_height="wrap_content"
62                 android:text="@string/preload_types"
63                 />
64       <CheckBox android:id="@+id/preload_hybrid"
65                 android:layout_width="fill_parent"
66                 android:layout_height="wrap_content"
67                 android:text="@string/preload_hybrid"
68                 />
69       <CheckBox android:id="@+id/preload_satellite"
70                 android:layout_width="fill_parent"
71                 android:layout_height="wrap_content"
72                 android:text="@string/preload_satellite"
73                 />
74       <CheckBox android:id="@+id/preload_roadmap"
75                 android:layout_width="fill_parent"
76                 android:layout_height="wrap_content"
77                 android:text="@string/preload_roadmap"
78                 />
79       <CheckBox android:id="@+id/preload_terrain"
80                 android:layout_width="fill_parent"
81                 android:layout_height="wrap_content"
82                 android:text="@string/preload_terrain"
83                 />
84       <TextView android:id="@+id/preload_min_zoom_label"
85                 android:layout_width="fill_parent"
86                 android:layout_height="wrap_content"
87                 android:text="@string/preload_min_zoom"
88                 />
89       <Spinner android:id="@+id/preload_min_zoom"
90                android:layout_width="fill_parent"
91                android:layout_height="wrap_content"
92                android:prompt="@string/preload_min_zoom"
93                android:spinnerMode="dropdown"
94                />
95       <TextView android:id="@+id/preload_max_zoom_label"
96                 android:layout_width="fill_parent"
97                 android:layout_height="wrap_content"
98                 android:text="@string/preload_max_zoom"
99                 />
100       <Spinner android:id="@+id/preload_max_zoom"
101                android:layout_width="fill_parent"
102                android:layout_height="wrap_content"
103                android:prompt="@string/preload_max_zoom"
104                android:spinnerMode="dropdown"
105                />
106       <TextView android:id="@+id/preload_radius_label"
107                 android:layout_width="fill_parent"
108                 android:layout_height="wrap_content"
109                 android:text="@string/preload_radius"
110                 />
111       <Spinner android:id="@+id/preload_radius"
112                android:layout_width="fill_parent"
113                android:layout_height="wrap_content"
114                android:prompt="@string/preload_radius"
115                android:spinnerMode="dropdown"
116                />
117       <Button android:id="@+id/preload_load"
118               android:layout_width="match_parent"
119               android:layout_height="wrap_content"
120               android:text="@string/preload_load"
121               />
122       <ProgressBar android:id="@+id/preload_progress"
123                    android:layout_width="match_parent"
124                    android:layout_height="wrap_content"
125                    style="@android:style/Widget.ProgressBar.Horizontal"
126                    />
127     </LinearLayout>
128   </ScrollView>
129 </LinearLayout>