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/textAppearanceSmallInverse"
     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:inputType="textNoSuggestions" />
     50 
     51             <TextView
     52                     style="?android:attr/textAppearanceSmallInverse"
     53                     android:layout_width="match_parent"
     54                     android:layout_height="wrap_content"
     55                     android:layout_marginTop="8dip"
     56                     android:text="@string/wifi_security" />
     57 
     58             <Spinner android:id="@+id/security"
     59                     android:layout_width="match_parent"
     60                     android:layout_height="wrap_content"
     61                     android:prompt="@string/wifi_security"
     62                     android:entries="@array/wifi_security" />
     63         </LinearLayout>
     64 
     65         <LinearLayout android:id="@+id/fields"
     66                 android:layout_width="match_parent"
     67                 android:layout_height="wrap_content"
     68                 android:orientation="vertical"
     69                 android:visibility="gone">
     70 
     71             <LinearLayout android:id="@+id/eap"
     72                     android:layout_width="match_parent"
     73                     android:layout_height="wrap_content"
     74                     android:orientation="vertical"
     75                     android:visibility="gone">
     76 
     77                 <TextView
     78                         style="?android:attr/textAppearanceSmallInverse"
     79                         android:layout_width="match_parent"
     80                         android:layout_height="wrap_content"
     81                         android:layout_marginTop="4dip"
     82                         android:text="@string/wifi_eap_method" />
     83 
     84                 <Spinner android:id="@+id/method"
     85                         android:layout_width="match_parent"
     86                         android:layout_height="wrap_content"
     87                         android:prompt="@string/wifi_eap_method"
     88                         android:entries="@array/wifi_eap_method" />
     89 
     90                 <TextView
     91                         style="?android:attr/textAppearanceSmallInverse"
     92                         android:layout_width="fill_parent"
     93                         android:layout_height="wrap_content"
     94                         android:layout_marginTop="8dip"
     95                         android:text="@string/please_select_phase2" />
     96 
     97                 <Spinner android:id="@+id/phase2"
     98                         android:layout_width="fill_parent"
     99                         android:layout_height="wrap_content"
    100                         android:prompt="@string/please_select_phase2"
    101                         android:entries="@array/wifi_phase2_entries" />
    102 
    103                 <TextView
    104                         style="?android:attr/textAppearanceSmallInverse"
    105                         android:layout_width="match_parent"
    106                         android:layout_height="wrap_content"
    107                         android:layout_marginTop="4dip"
    108                         android:text="@string/wifi_eap_ca_cert" />
    109 
    110                 <Spinner android:id="@+id/ca_cert"
    111                         android:layout_width="match_parent"
    112                         android:layout_height="wrap_content"
    113                         android:prompt="@string/wifi_eap_ca_cert" />
    114 
    115                 <TextView
    116                         style="?android:attr/textAppearanceSmallInverse"
    117                         android:layout_width="match_parent"
    118                         android:layout_height="wrap_content"
    119                         android:layout_marginTop="4dip"
    120                         android:text="@string/wifi_eap_user_cert" />
    121 
    122                 <Spinner android:id="@+id/user_cert"
    123                         android:layout_width="match_parent"
    124                         android:layout_height="wrap_content"
    125                         android:prompt="@string/wifi_eap_user_cert" />
    126 
    127                 <TextView
    128                         style="?android:attr/textAppearanceSmallInverse"
    129                         android:layout_width="match_parent"
    130                         android:layout_height="wrap_content"
    131                         android:layout_marginTop="4dip"
    132                         android:text="@string/wifi_eap_identity" />
    133 
    134                 <EditText android:id="@+id/identity"
    135                         android:layout_width="match_parent"
    136                         android:layout_height="wrap_content"
    137                         android:singleLine="true"
    138                         android:inputType="textNoSuggestions" />
    139 
    140                 <TextView
    141                         style="?android:attr/textAppearanceSmallInverse"
    142                         android:layout_width="match_parent"
    143                         android:layout_height="wrap_content"
    144                         android:layout_marginTop="4dip"
    145                         android:text="@string/wifi_eap_anonymous" />
    146 
    147                 <EditText android:id="@+id/anonymous"
    148                         android:layout_width="match_parent"
    149                         android:layout_height="wrap_content"
    150                         android:singleLine="true"
    151                         android:inputType="textNoSuggestions" />
    152             </LinearLayout>
    153 
    154             <TextView
    155                     style="?android:attr/textAppearanceSmallInverse"
    156                     android:layout_width="match_parent"
    157                     android:layout_height="wrap_content"
    158                     android:layout_marginTop="4dip"
    159                     android:text="@string/wifi_password" />
    160 
    161             <EditText android:id="@+id/password"
    162                     android:layout_width="match_parent"
    163                     android:layout_height="wrap_content"
    164                     android:singleLine="true"
    165                     android:password="true" />
    166 
    167             <CheckBox android:id="@+id/show_password"
    168                     style="?android:attr/textAppearanceSmallInverse"
    169                     android:layout_width="match_parent"
    170                     android:layout_height="wrap_content"
    171                     android:text="@string/wifi_show_password" />
    172         </LinearLayout>
    173     </LinearLayout>
    174 </ScrollView>
    175