altosdroid: Add configurable frequency set
[fw/altos] / altosdroid / res / layout / setup.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3
4  Copyright © 2016 Keith Packard <keithp@keithp.com>
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; version 2 of the License.
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 -->
20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21     android:orientation="vertical"
22     android:layout_width="match_parent"
23     android:layout_height="match_parent"
24     >
25   <TableLayout
26       xmlns:android="http://schemas.android.com/apk/res/android"
27       android:stretchColumns="2,3"
28       android:layout_weight="0"
29       android:layout_width="fill_parent"
30       android:layout_height="wrap_content">
31
32     <TableRow
33         android:layout_gravity="center"
34         android:layout_weight="1"
35         android:padding="2dip"
36         android:layout_width="wrap_content"
37         android:layout_height="wrap_content">
38       <TextView
39           android:id="@+id/select_rate_label"
40           android:layout_width="wrap_content"
41           android:layout_height="wrap_content"
42           android:text="@string/telemetry_rate"
43           />
44       <Spinner android:id="@+id/select_rate"
45                android:layout_width="fill_parent"
46                android:layout_height="wrap_content"
47                android:prompt="@string/telemetry_rate"
48                android:spinnerMode="dropdown"
49                />
50     </TableRow>
51     <TableRow
52         android:layout_gravity="center"
53         android:layout_weight="1"
54         android:padding="2dip"
55         android:layout_width="wrap_content"
56         android:layout_height="wrap_content">
57       <TextView
58           android:id="@+id/set_units_label"
59           android:layout_width="wrap_content"
60           android:layout_height="wrap_content"
61           android:text="@string/set_units"
62           />
63       <Spinner android:id="@+id/set_units"
64                android:layout_width="fill_parent"
65                android:layout_height="wrap_content"
66                android:prompt="@string/set_units"
67                android:spinnerMode="dropdown"
68                />
69     </TableRow>
70     <TableRow
71         android:layout_gravity="center"
72         android:layout_weight="1"
73         android:padding="2dip"
74         android:layout_width="wrap_content"
75         android:layout_height="wrap_content">
76       <TextView
77           android:id="@+id/map_type_label"
78           android:layout_width="wrap_content"
79           android:layout_height="wrap_content"
80           android:text="@string/map_type"
81           />
82       <Spinner android:id="@+id/map_type"
83                android:layout_width="fill_parent"
84                android:layout_height="wrap_content"
85                android:prompt="@string/map_type"
86                android:spinnerMode="dropdown"
87                />
88     </TableRow>
89     <TableRow
90         android:layout_gravity="center"
91         android:layout_weight="1"
92         android:padding="2dip"
93         android:layout_width="wrap_content"
94         android:layout_height="wrap_content">
95       <TextView
96           android:id="@+id/map_source_label"
97           android:layout_width="wrap_content"
98           android:layout_height="wrap_content"
99           android:text="@string/map_source"
100           />
101       <Spinner android:id="@+id/map_source"
102                android:layout_width="fill_parent"
103                android:layout_height="wrap_content"
104                android:prompt="@string/map_source"
105                android:spinnerMode="dropdown"
106                />
107     </TableRow>
108   </TableLayout>
109   <Button android:id="@+id/preload_maps"
110           android:layout_width="match_parent"
111           android:layout_height="wrap_content"
112           android:text="@string/preload_maps"
113           />
114   <Button android:id="@+id/manage_frequencies"
115           android:layout_width="match_parent"
116           android:layout_height="wrap_content"
117           android:text="@string/manage_frequencies"
118           />
119   <Button android:id="@+id/done"
120           android:layout_width="match_parent"
121           android:layout_height="wrap_content"
122           android:text="@string/done"
123           />
124 </LinearLayout>