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          android:fadeScrollbars="false">
     21 
     22     <LinearLayout
     23             android:layout_width="match_parent"
     24             android:layout_height="wrap_content"
     25             android:descendantFocusability="beforeDescendants"
     26             android:focusableInTouchMode="true"
     27             android:orientation="vertical">
     28 
     29         <LinearLayout android:id="@+id/info"
     30                 android:layout_width="match_parent"
     31                 android:layout_height="wrap_content"
     32                 style="@style/wifi_section" />
     33 
     34         <LinearLayout android:id="@+id/type"
     35                 android:layout_width="match_parent"
     36                 android:layout_height="wrap_content"
     37                 style="@style/wifi_section"
     38                 android:visibility="gone">
     39 
     40             <LinearLayout
     41                     android:layout_width="match_parent"
     42                     android:layout_height="wrap_content"
     43                     style="@style/wifi_item">
     44                 <TextView
     45                         android:layout_width="match_parent"
     46                         android:layout_height="wrap_content"
     47                         style="@style/wifi_item_label"
     48                         android:layout_marginTop="8dip"
     49                         android:text="@string/wifi_ssid" />
     50 
     51                 <EditText android:id="@+id/ssid"
     52                         android:layout_width="match_parent"
     53                         android:layout_height="wrap_content"
     54                         style="@style/wifi_item_edit_content"
     55                         android:singleLine="true"
     56                         android:hint="@string/wifi_ssid_hint"
     57                         android:inputType="textNoSuggestions"
     58                         android:maxLength="32" />
     59             </LinearLayout>
     60 
     61             <LinearLayout
     62                     android:layout_width="match_parent"
     63                     android:layout_height="wrap_content"
     64                     style="@style/wifi_item">
     65                 <TextView
     66                         android:layout_width="match_parent"
     67                         android:layout_height="wrap_content"
     68                         style="@style/wifi_item_label"
     69                         android:layout_marginTop="8dip"
     70                         android:text="@string/wifi_security" />
     71 
     72                 <Spinner android:id="@+id/security"
     73                         android:layout_width="match_parent"
     74                         android:layout_height="wrap_content"
     75                         style="@style/wifi_item_content"
     76                         android:prompt="@string/wifi_security"
     77                         android:entries="@array/wifi_ap_security" />
     78             </LinearLayout>
     79 
     80         </LinearLayout>
     81 
     82         <LinearLayout android:id="@+id/fields"
     83                 android:layout_width="match_parent"
     84                 android:layout_height="wrap_content"
     85                 style="@style/wifi_section"
     86                 android:visibility="gone">
     87 
     88             <LinearLayout
     89                     android:layout_width="match_parent"
     90                     android:layout_height="wrap_content"
     91                     style="@style/wifi_item">
     92                 <TextView
     93                         android:layout_width="match_parent"
     94                         android:layout_height="wrap_content"
     95                         style="@style/wifi_item_label"
     96                         android:layout_marginTop="8dip"
     97                         android:text="@string/wifi_password" />
     98 
     99                 <EditText android:id="@+id/password"
    100                         android:layout_width="match_parent"
    101                         android:layout_height="wrap_content"
    102                         style="@style/wifi_item_edit_content"
    103                         android:singleLine="true"
    104                         android:password="true"
    105                         android:maxLength="63"
    106                         android:imeOptions="flagForceAscii" />
    107             </LinearLayout>
    108 
    109             <LinearLayout
    110                     android:layout_width="match_parent"
    111                     android:layout_height="wrap_content"
    112                     style="@style/wifi_item">
    113                 <TextView android:id="@+id/hint"
    114                         android:layout_width="match_parent"
    115                         android:layout_height="wrap_content"
    116                         style="@style/wifi_item_label"
    117                         android:text="@string/credentials_password_too_short"
    118                         android:layout_marginTop="8dip"
    119                         android:layout_marginBottom="10sp"/>
    120 
    121                 <CheckBox android:id="@+id/show_password"
    122                         android:layout_width="match_parent"
    123                         android:layout_height="wrap_content"
    124                         style="@style/wifi_item_content"
    125                         android:text="@string/wifi_show_password" />
    126             </LinearLayout>
    127         </LinearLayout>
    128 
    129         <LinearLayout android:id="@+id/fields"
    130                 android:layout_width="match_parent"
    131                 android:layout_height="wrap_content"
    132                 style="@style/wifi_section" >
    133 
    134             <LinearLayout
    135                     android:layout_width="match_parent"
    136                     android:layout_height="wrap_content"
    137                     style="@style/wifi_item">
    138                 <TextView
    139                     android:layout_width="match_parent"
    140                     android:layout_height="wrap_content"
    141                     style="@style/wifi_item_label"
    142                     android:layout_marginTop="8dip"
    143                     android:text="@string/wifi_ap_band_config" />
    144 
    145                 <Spinner android:id="@+id/choose_channel"
    146                     android:layout_width="match_parent"
    147                     android:layout_height="wrap_content"
    148                     style="@style/wifi_item_content"
    149                     android:prompt="@string/wifi_ap_band_config" />
    150             </LinearLayout>
    151         </LinearLayout>
    152 
    153     </LinearLayout>
    154 </ScrollView>
    155