add license
[adBlock.git] / res / layout / main.xml
blobd99d711e4093462fbc24ec54656a2c5be75b91ac
1 <?xml version="1.0" encoding="utf-8"?>
2         <!--
3                 Copyright (C) 2009 Felix Bechstein
4         -->
5         <!--
6                 This file is part of AdBlock. This program is free software; you can
7                 redistribute it and/or modify it under the terms of the GNU General
8                 Public License as published by the Free Software Foundation; either
9                 version 3 of the License, or (at your option) any later version.
10         -->
11         <!--
12                 This program is distributed in the hope that it will be useful, but
13                 WITHOUT ANY WARRANTY; without even the implied warranty of
14                 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15                 General Public License for more details. You should have received a
16                 copy of the GNU General Public License along with this program; If
17                 not, see <http://www.gnu.org/licenses/>.
18         -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20         android:orientation="vertical" android:layout_width="fill_parent"
21         android:layout_height="fill_parent">
22         <LinearLayout android:layout_width="fill_parent"
23                 android:layout_height="wrap_content" android:layout_weight="0">
24                 <EditText android:hint="@string/port_" android:id="@+id/port"
25                         android:layout_width="wrap_content" android:layout_height="wrap_content"
26                         android:layout_marginRight="10sp" android:inputType="number" />
27                 <Button android:text="@string/start_" android:id="@+id/start_service"
28                         android:layout_width="fill_parent" android:layout_height="wrap_content"
29                         android:layout_weight="1" />
30                 <Button android:text="@string/stop_" android:id="@+id/stop_service"
31                         android:layout_width="fill_parent" android:layout_height="wrap_content"
32                         android:layout_weight="1" />
33         </LinearLayout>
34         <TextView android:text="@string/filter_" android:layout_width="wrap_content"
35                 android:layout_height="wrap_content" />
36         <ListView android:id="@+id/filter" android:layout_width="fill_parent"
37                 android:layout_height="wrap_content" android:layout_weight="1" />
38         <LinearLayout android:layout_width="fill_parent"
39                 android:layout_height="wrap_content">
40                 <EditText android:id="@+id/filter_add" android:inputType="textUri"
41                         android:layout_width="wrap_content" android:layout_height="wrap_content"
42                         android:layout_weight="1" />
43                 <Button android:text="@string/add_filter" android:id="@+id/filter_add_"
44                         android:layout_width="wrap_content" android:layout_height="wrap_content"
45                         android:layout_weight="0" />
46         </LinearLayout>
47 </LinearLayout>