77ded1d9cfc3522e6fb622e3b26d8a8d1ea8e4ac
[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; 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
26     <LinearLayout
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"
32         >
33       <EditText
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"/>
41       />
42       <TextView
43           android:id="@+id/mhz"
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"
49           />
50       <EditText
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"
57           />
58     </LinearLayout>
59     <LinearLayout
60         android:orientation="horizontal"
61         android:layout_width="match_parent"
62         android:layout_height="wrap_content"
63         >
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"
69               />
70       
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"
76               />
77       
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"
83               />
84     </LinearLayout>
85
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"
93         />
94
95     
96 </LinearLayout>