• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18         android:layout_width="300sp"
19         android:layout_height="wrap_content"
20         android:fadeScrollbars="false">
21
22    <LinearLayout
23            android:layout_width="match_parent"
24            android:layout_height="wrap_content"
25            android:orientation="vertical">
26
27        <LinearLayout android:id="@+id/info"
28                android:layout_width="match_parent"
29                android:layout_height="wrap_content"
30                style="@style/wifi_item"
31                android:orientation="vertical" />
32
33        <LinearLayout android:id="@+id/type"
34                android:layout_width="match_parent"
35                android:layout_height="wrap_content"
36                style="@style/wifi_item"
37                android:orientation="vertical"
38                android:visibility="gone">
39
40            <TextView
41                    android:layout_width="match_parent"
42                    android:layout_height="wrap_content"
43                    style="@style/wifi_item_label"
44                    android:layout_marginTop="8dip"
45                    android:text="@string/wifi_ssid" />
46
47            <EditText android:id="@+id/ssid"
48                    android:layout_width="match_parent"
49                    android:layout_height="wrap_content"
50                    style="@style/wifi_item_edit_content"
51                    android:singleLine="true"
52                    android:hint="@string/wifi_ssid_hint"
53                    android:inputType="textNoSuggestions"
54                    android:maxLength="32" />
55
56            <TextView
57                    android:layout_width="match_parent"
58                    android:layout_height="wrap_content"
59                    style="@style/wifi_item_label"
60                    android:layout_marginTop="8dip"
61                    android:text="@string/wifi_security" />
62
63            <Spinner android:id="@+id/security"
64                    android:layout_width="match_parent"
65                    android:layout_height="wrap_content"
66                    style="@style/wifi_item_content"
67                    android:prompt="@string/wifi_security"
68                    android:entries="@array/wifi_ap_security" />
69        </LinearLayout>
70
71        <LinearLayout android:id="@+id/fields"
72                android:layout_width="match_parent"
73                android:layout_height="wrap_content"
74                style="@style/wifi_item"
75                android:orientation="vertical"
76                android:visibility="gone">
77
78            <TextView
79                    android:layout_width="match_parent"
80                    android:layout_height="wrap_content"
81                    style="@style/wifi_item_label"
82                    android:layout_marginTop="8dip"
83                    android:text="@string/wifi_password" />
84
85            <EditText android:id="@+id/password"
86                    android:layout_width="match_parent"
87                    android:layout_height="wrap_content"
88                    style="@style/wifi_item_edit_content"
89                    android:singleLine="true"
90                    android:password="true"
91                    android:maxLength="63"
92                    android:imeOptions="flagForceAscii" />
93
94            <TextView android:id="@+id/hint"
95                    android:layout_width="match_parent"
96                    android:layout_height="wrap_content"
97                    style="@style/wifi_item_label"
98                    android:text="@string/credentials_password_too_short"
99                    android:layout_marginTop="8dip"
100                    android:layout_marginBottom="10sp"/>
101
102            <CheckBox android:id="@+id/show_password"
103                    android:layout_width="match_parent"
104                    android:layout_height="wrap_content"
105                    style="@style/wifi_item_content"
106                    android:text="@string/wifi_show_password" />
107        </LinearLayout>
108    </LinearLayout>
109</ScrollView>
110