1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2016 Keith Packard <keithp@keithp.com>
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.
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.
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.
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"
27 xmlns:android="http://schemas.android.com/apk/res/android"
28 android:id="@+id/set_layout"
29 android:layout_width="fill_parent"
30 android:layout_height="wrap_content"
31 android:orientation="horizontal"
34 android:id="@+id/set_frequency"
35 android:layout_width="wrap_content"
36 android:layout_height="fill_parent"
37 android:padding="10dp"
38 android:layout_weight="1"
39 android:hint="@string/frequency"
40 android:inputType="number|numberDecimal"/>
44 android:layout_width="wrap_content"
45 android:layout_height="fill_parent"
46 android:padding="10dp"
47 android:layout_weight="0"
48 android:text="@string/mhz"
51 android:id="@+id/set_description"
52 android:layout_width="wrap_content"
53 android:layout_height="fill_parent"
54 android:padding="10dp"
55 android:layout_weight="2"
56 android:hint="@string/description"
60 android:orientation="horizontal"
61 android:layout_width="match_parent"
62 android:layout_height="wrap_content"
64 <Button android:id="@+id/set"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:text="@string/set"
68 android:layout_weight="1"
71 <Button android:id="@+id/remove"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:text="@string/remove"
75 android:layout_weight="1"
78 <Button android:id="@+id/done"
79 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
81 android:text="@string/done"
82 android:layout_weight="1"
86 <ListView android:id="@+id/frequencies"
87 android:layout_width="match_parent"
88 android:layout_height="wrap_content"
89 android:layout_weight="1"
90 android:fadeScrollbars="false"
91 android:scrollbars="vertical"
92 android:choiceMode="singleChoice"