Home | History | Annotate | Download | only in layout
      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 
     21     <LinearLayout
     22             android:layout_width="match_parent"
     23             android:layout_height="wrap_content"
     24             android:padding="8dip"
     25             android:orientation="vertical">
     26 
     27         <LinearLayout android:id="@+id/info"
     28                 android:layout_width="match_parent"
     29                 android:layout_height="wrap_content"
     30                 android:orientation="vertical" />
     31 
     32         <LinearLayout android:id="@+id/type"
     33                 android:layout_width="match_parent"
     34                 android:layout_height="wrap_content"
     35                 android:orientation="vertical"
     36                 android:visibility="gone">
     37 
     38             <TextView
     39                     style="?android:attr/textAppearanceSmall"
     40                     android:layout_width="match_parent"
     41                     android:layout_height="wrap_content"
     42                     android:layout_marginTop="8dip"
     43                     android:text="@string/wifi_ssid" />
     44 
     45             <EditText android:id="@+id/ssid"
     46                     android:layout_width="match_parent"
     47                     android:layout_height="wrap_content"
     48                     android:singleLine="true"
     49                     android:hint="@string/wifi_ssid_hint"
     50                     android:inputType="textNoSuggestions"
     51                     android:maxLength="32" />
     52 
     53             <TextView
     54                     style="?android:attr/textAppearanceSmall"
     55                     android:layout_width="match_parent"
     56                     android:layout_height="wrap_content"
     57                     android:layout_marginTop="8dip"
     58                     android:text="@string/wifi_security" />
     59 
     60             <Spinner android:id="@+id/security"
     61                     android:layout_width="match_parent"
     62                     android:layout_height="wrap_content"
     63                     android:prompt="@string/wifi_security"
     64                     android:entries="@array/wifi_ap_security" />
     65         </LinearLayout>
     66 
     67         <LinearLayout android:id="@+id/fields"
     68                 android:layout_width="match_parent"
     69                 android:layout_height="wrap_content"
     70                 android:orientation="vertical"
     71                 android:visibility="gone">
     72 
     73             <TextView
     74                     style="?android:attr/textAppearanceSmall"
     75                     android:layout_width="match_parent"
     76                     android:layout_height="wrap_content"
     77                     android:layout_marginTop="4dip"
     78                     android:text="@string/wifi_password" />
     79 
     80             <EditText android:id="@+id/password"
     81                     android:layout_width="match_parent"
     82                     android:layout_height="wrap_content"
     83                     android:singleLine="true"
     84                     android:password="true"
     85                     android:maxLength="63"
     86                     android:imeOptions="flagForceAscii" />
     87 
     88             <TextView android:id="@+id/hint"
     89                     style="?android:attr/textAppearanceSmall"
     90                     android:layout_width="match_parent"
     91                     android:layout_height="wrap_content"
     92                     android:textSize="12sp"
     93                     android:text="@string/credentials_password_too_short"
     94                     android:layout_marginBottom="10sp"/>
     95 
     96             <CheckBox android:id="@+id/show_password"
     97                     style="?android:attr/textAppearanceSmall"
     98                     android:layout_width="match_parent"
     99                     android:layout_height="wrap_content"
    100                     android:text="@string/wifi_show_password" />
    101         </LinearLayout>
    102     </LinearLayout>
    103 </ScrollView>
    104