Switch from GPLv2 to GPLv2+
[fw/altos] / altosdroid / res / layout / manage_frequencies.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; either version 2 of the License, or
9  (at your option) any later version.
10
11  This program is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  General Public License for more details.
15
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19
20 -->
21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22     android:orientation="vertical"
23     android:layout_width="match_parent"
24     android:layout_height="match_parent"
25     >
26
27     <LinearLayout
28         xmlns:android="http://schemas.android.com/apk/res/android"
29         android:id="@+id/set_layout"
30         android:layout_width="fill_parent"
31         android:layout_height="wrap_content"
32         android:orientation="horizontal"
33         >
34       <EditText
35           android:id="@+id/set_frequency"
36           android:layout_width="wrap_content"
37           android:layout_height="fill_parent"
38           android:padding="10dp"
39           android:layout_weight="1"
40           android:hint="@string/frequency"
41           android:inputType="number|numberDecimal"/>
42       />
43       <TextView
44           android:id="@+id/mhz"
45           android:layout_width="wrap_content"
46           android:layout_height="fill_parent"
47           android:padding="10dp"
48           android:layout_weight="0"
49           android:text="@string/mhz"
50           />
51       <EditText
52           android:id="@+id/set_description"
53           android:layout_width="wrap_content"
54           android:layout_height="fill_parent"  
55           android:padding="10dp"
56           android:layout_weight="2"
57           android:hint="@string/description"
58           />
59     </LinearLayout>
60     <LinearLayout
61         android:orientation="horizontal"
62         android:layout_width="match_parent"
63         android:layout_height="wrap_content"
64         >
65       <Button android:id="@+id/set"
66               android:layout_width="wrap_content"
67               android:layout_height="wrap_content"
68               android:text="@string/set"
69               android:layout_weight="1"
70               />
71       
72       <Button android:id="@+id/remove"
73               android:layout_width="wrap_content"
74               android:layout_height="wrap_content"
75               android:text="@string/remove"
76               android:layout_weight="1"
77               />
78       
79       <Button android:id="@+id/done"
80               android:layout_width="wrap_content"
81               android:layout_height="wrap_content"
82               android:text="@string/done"
83               android:layout_weight="1"
84               />
85     </LinearLayout>
86
87     <ListView android:id="@+id/frequencies"
88         android:layout_width="match_parent"
89         android:layout_height="wrap_content"
90         android:layout_weight="1"
91         android:fadeScrollbars="false"
92         android:scrollbars="vertical"
93         android:choiceMode="singleChoice"
94         />
95
96     
97 </LinearLayout>