OSDN Git Service

Switch to static warning threshold when adopting.
[android-x86/packages-apps-Settings.git] / res / layout / proxy.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*
4 **
5 ** Copyright 2006, The Android Open Source Project
6 **
7 ** Licensed under the Apache License, Version 2.0 (the "License"); 
8 ** you may not use this file except in compliance with the License. 
9 ** You may obtain a copy of the License at 
10 **
11 **     http://www.apache.org/licenses/LICENSE-2.0 
12 **
13 ** Unless required by applicable law or agreed to in writing, software 
14 ** distributed under the License is distributed on an "AS IS" BASIS, 
15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
16 ** See the License for the specific language governing permissions and 
17 ** limitations under the License.
18 */
19 -->
20 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
21     android:layout_width="match_parent"
22     android:layout_height="match_parent" >
23
24     <LinearLayout
25         android:orientation="vertical"
26         android:paddingStart="6dip"
27         android:paddingEnd="6dip"
28         android:paddingBottom="3dip"
29         android:layout_width="match_parent" android:layout_height="wrap_content"
30         android:scrollbars="vertical" >
31
32         <TextView
33             android:textStyle="bold"
34             android:maxLines="1"
35             android:layout_marginTop="8dip"
36             android:layout_width="wrap_content" android:layout_height="wrap_content"
37             android:text="@string/proxy_hostname_label" />
38
39         <EditText android:id="@+id/hostname"
40             android:maxLines="1"
41             android:layout_marginTop="2dip"
42             android:layout_width="match_parent" android:layout_height="wrap_content"
43             android:autoText="false"
44             android:capitalize="none"
45             android:scrollHorizontally="true" />
46
47         <TextView
48             android:textStyle="bold"
49             android:maxLines="1"
50             android:layout_marginTop="4dip"
51             android:layout_width="wrap_content" android:layout_height="wrap_content"
52             android:text="@string/proxy_port_label" />
53
54         <EditText android:id="@+id/port"
55             android:numeric="integer"
56             android:maxLines="1"
57             android:layout_marginTop="2dip"
58             android:layout_width="match_parent" android:layout_height="wrap_content"
59             android:scrollHorizontally="true" />
60
61         <TextView
62             android:textStyle="bold"
63             android:maxLines="1"
64             android:layout_marginTop="4dip"
65             android:layout_width="wrap_content" android:layout_height="wrap_content"
66             android:text="@string/proxy_exclusionlist_label" />
67
68         <EditText android:id="@+id/exclusionlist"
69             android:maxLines="1" 
70             android:layout_marginTop="2dip"
71             android:layout_width="match_parent" android:layout_height="wrap_content"
72             android:autoText="false"
73             android:capitalize="none"
74             android:singleLine="true"
75             android:scrollHorizontally="true" />
76
77         <LinearLayout 
78             android:orientation="horizontal"
79             android:paddingTop="8dip"
80             android:layout_width="wrap_content" android:layout_height="wrap_content">
81
82             <Button android:id="@+id/action" 
83                 android:layout_width="wrap_content" android:layout_height="match_parent"
84                 android:layout_weight="1"
85                 android:text="@string/proxy_action_text" />
86
87             <Button android:id="@+id/clear" 
88                 android:layout_width="wrap_content" android:layout_height="match_parent"
89                 android:layout_weight="1"
90                 android:text="@string/proxy_clear_text" />
91
92             <Button android:id="@+id/defaultView" 
93                 android:layout_width="wrap_content" android:layout_height="match_parent"
94                 android:layout_weight="1"
95                 android:text="@string/proxy_defaultView_text" />
96
97         </LinearLayout>
98     </LinearLayout>
99 </ScrollView>