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="wrap_content"
     19          android:layout_height="wrap_content">
     20 
     21     <LinearLayout
     22             android:layout_width="match_parent"
     23             android:layout_height="wrap_content"
     24             android:orientation="vertical"
     25             android:paddingBottom="8dip">
     26 
     27         <LinearLayout android:id="@+id/info"
     28                 style="@style/wifi_section" />
     29 
     30         <LinearLayout android:id="@+id/type"
     31                 style="@style/wifi_section"
     32                 android:visibility="gone">
     33 
     34             <LinearLayout
     35                       style="@style/wifi_item" >
     36                 <TextView
     37                         style="@style/wifi_item_label"
     38                         android:text="@string/wifi_ssid"
     39                         android:textDirection="locale" />
     40 
     41                 <EditText android:id="@+id/ssid"
     42                         style="@style/wifi_item_edit_content"
     43                         android:hint="@string/wifi_ssid_hint"
     44                         android:maxLength="32"
     45                         android:singleLine="true"
     46                         android:inputType="textNoSuggestions" />
     47              </LinearLayout>
     48 
     49              <LinearLayout
     50                        style="@style/wifi_item" >
     51                  <TextView
     52                          style="@style/wifi_item_content"
     53                          android:text="@string/wifi_security" />
     54 
     55                  <Spinner android:id="@+id/security"
     56                          style="@style/wifi_item_content"
     57                          android:prompt="@string/wifi_security"
     58                          android:entries="@array/wifi_security" />
     59              </LinearLayout>
     60         </LinearLayout>
     61 
     62         <LinearLayout android:id="@+id/security_fields"
     63                 style="@style/wifi_section"
     64                 android:visibility="gone">
     65 
     66             <LinearLayout android:id="@+id/eap"
     67                     style="@style/wifi_section"
     68                     android:visibility="gone">
     69 
     70                 <LinearLayout android:id="@+id/l_method"
     71                         android:visibility="gone"
     72                         style="@style/wifi_item" >
     73                     <TextView
     74                             style="@style/wifi_item_label"
     75                             android:text="@string/wifi_eap_method" />
     76 
     77                     <Spinner android:id="@+id/method"
     78                             style="@style/wifi_item_content"
     79                             android:prompt="@string/wifi_eap_method"
     80                             android:entries="@array/wifi_eap_method" />
     81                 </LinearLayout>
     82                 
     83                 <LinearLayout android:id="@+id/l_phase2"
     84                         android:visibility="gone"
     85                         style="@style/wifi_item" >
     86                     <TextView
     87                             style="@style/wifi_item_label"
     88                             android:text="@string/please_select_phase2" />
     89 
     90                     <Spinner android:id="@+id/phase2"
     91                             style="@style/wifi_item_content"
     92                             android:prompt="@string/please_select_phase2"
     93                             android:entries="@array/wifi_phase2_entries" />
     94                 </LinearLayout>
     95 
     96                 <LinearLayout android:id="@+id/l_ca_cert"
     97                         android:visibility="gone"
     98                         style="@style/wifi_item" >
     99                     <TextView
    100                             style="@style/wifi_item_label"
    101                             android:text="@string/wifi_eap_ca_cert" />
    102 
    103                     <Spinner android:id="@+id/ca_cert"
    104                             style="@style/wifi_item_content"
    105                             android:prompt="@string/wifi_eap_ca_cert" />
    106                 </LinearLayout>
    107 
    108                 <LinearLayout android:id="@+id/l_user_cert"
    109                         android:visibility="gone"
    110                         style="@style/wifi_item" >
    111                     <TextView
    112                             style="@style/wifi_item_label"
    113                             android:text="@string/wifi_eap_user_cert" />
    114 
    115                     <Spinner android:id="@+id/user_cert"
    116                             style="@style/wifi_item_content"
    117                             android:prompt="@string/wifi_eap_user_cert" />
    118                 </LinearLayout>
    119 
    120                 <LinearLayout android:id="@+id/l_identity"
    121                         android:visibility="gone"
    122                         style="@style/wifi_item" >
    123                     <TextView
    124                             style="@style/wifi_item_label"
    125                             android:text="@string/wifi_eap_identity" />
    126 
    127                     <EditText android:id="@+id/identity"
    128                             style="@style/wifi_item_edit_content"
    129                             android:singleLine="true"
    130                             android:inputType="textNoSuggestions" />
    131                 </LinearLayout>
    132 
    133                 <LinearLayout android:id="@+id/l_anonymous"
    134                         android:visibility="gone"
    135                         style="@style/wifi_item" >
    136                     <TextView
    137                             style="@style/wifi_item_label"
    138                             android:text="@string/wifi_eap_anonymous" />
    139 
    140                     <EditText android:id="@+id/anonymous"
    141                             style="@style/wifi_item_edit_content"
    142                             android:singleLine="true"
    143                             android:inputType="textNoSuggestions" />
    144                 </LinearLayout>
    145             </LinearLayout>
    146 
    147             <LinearLayout android:id="@+id/password_layout"
    148                        style="@style/wifi_item" >
    149                 <TextView
    150                         style="@style/wifi_item_label"
    151                         android:text="@string/wifi_password" />
    152 
    153                 <EditText android:id="@+id/password"
    154                         style="@style/wifi_item_edit_content"
    155                         android:singleLine="true"
    156                         android:password="true" />
    157             </LinearLayout>
    158 
    159             <LinearLayout android:id="@+id/show_password_layout"
    160                     style="@style/wifi_item" >
    161                 <!--  Dummy to enable right-justification of checkbox -->
    162                 <TextView
    163                     style="@style/wifi_item_label" />
    164 
    165                 <CheckBox android:id="@+id/show_password"
    166                     style="@style/wifi_item_content"
    167                     android:textSize="14sp"
    168                     android:text="@string/wifi_show_password" />
    169             </LinearLayout>
    170         </LinearLayout>
    171 
    172         <LinearLayout android:id="@+id/wifi_advanced_toggle"
    173                     style="@style/wifi_item"
    174                     android:visibility="gone">
    175             <CheckBox android:id="@+id/wifi_advanced_togglebox"
    176                     style="@style/wifi_item_content"
    177                     android:textSize="14sp"
    178                     android:text="@string/wifi_show_advanced" />
    179         </LinearLayout>
    180 
    181         <LinearLayout android:id="@+id/wifi_advanced_fields"
    182                     android:layout_width="match_parent"
    183                     android:layout_height="wrap_content"
    184                     android:orientation="vertical"
    185                     android:visibility="gone">
    186 
    187             <LinearLayout android:id="@+id/proxy_settings_fields"
    188                     style="@style/wifi_item"
    189                     android:visibility="gone">
    190 
    191                 <TextView android:id="@+id/proxy_settings_title"
    192                         style="@style/wifi_item_label"
    193                         android:text="@string/proxy_settings_title" />
    194 
    195                 <Spinner android:id="@+id/proxy_settings"
    196                         style="@style/wifi_item_content"
    197                         android:prompt="@string/proxy_settings_title"
    198                         android:entries="@array/wifi_proxy_settings" />
    199 
    200                 <TextView android:id="@+id/proxy_pac_info"
    201                         style="@style/wifi_item_content"
    202                         android:textStyle="bold"
    203                         android:textAlignment="viewStart"
    204                         android:visibility="gone"/>
    205             </LinearLayout>
    206 
    207             <LinearLayout android:id="@+id/proxy_warning_limited_support"
    208                         style="@style/wifi_item"
    209                         android:visibility="gone">
    210                     <!--  Dummy to enable right-justification of warning -->
    211                     <TextView
    212                         style="@style/wifi_item_label" />
    213 
    214                     <TextView
    215                         style="@style/wifi_item_content"
    216                         android:text="@string/proxy_warning_limited_support" />
    217             </LinearLayout>
    218 
    219             <LinearLayout android:id="@+id/proxy_fields"
    220                     style="@style/wifi_section"
    221                     android:visibility="gone">
    222 
    223                 <LinearLayout style="@style/wifi_item">
    224                     <TextView
    225                             style="@style/wifi_item_label"
    226                             android:text="@string/proxy_hostname_label" />
    227 
    228                     <EditText android:id="@+id/proxy_hostname"
    229                             style="@style/wifi_item_edit_content"
    230                             android:hint="@string/proxy_hostname_hint"
    231                             android:inputType="textNoSuggestions"
    232                             android:singleLine="true" />
    233                 </LinearLayout>
    234                 <LinearLayout style="@style/wifi_item">
    235                     <TextView
    236                             style="@style/wifi_item_label"
    237                             android:text="@string/proxy_port_label" />
    238 
    239                     <EditText android:id="@+id/proxy_port"
    240                             style="@style/wifi_item_edit_content"
    241                             android:hint="@string/proxy_port_hint"
    242                             android:inputType="number"
    243                             android:singleLine="true" />
    244                 </LinearLayout>
    245                 <LinearLayout style="@style/wifi_item">
    246                     <TextView
    247                             style="@style/wifi_item_label"
    248                             android:text="@string/proxy_exclusionlist_label" />
    249 
    250                     <EditText android:id="@+id/proxy_exclusionlist"
    251                             style="@style/wifi_item_edit_content"
    252                             android:hint="@string/proxy_exclusionlist_hint"
    253                             android:inputType="textNoSuggestions"
    254                             android:singleLine="true" />
    255                 </LinearLayout>
    256             </LinearLayout>
    257 
    258             <LinearLayout android:id="@+id/ip_fields"
    259                     style="@style/wifi_item"
    260                     android:visibility="gone">
    261 
    262                 <TextView
    263                         style="@style/wifi_item_label"
    264                         android:text="@string/wifi_ip_settings" />
    265 
    266                 <Spinner android:id="@+id/ip_settings"
    267                         style="@style/wifi_item_content"
    268                         android:prompt="@string/wifi_ip_settings"
    269                         android:entries="@array/wifi_ip_settings" />
    270 
    271             </LinearLayout>
    272 
    273             <LinearLayout android:id="@+id/staticip"
    274                     style="@style/wifi_section"
    275                     android:visibility="gone">
    276                 <LinearLayout
    277                         style="@style/wifi_item" >
    278                     <TextView
    279                             style="@style/wifi_item_label"
    280                             android:text="@string/wifi_ip_address" />
    281 
    282                     <EditText android:id="@+id/ipaddress"
    283                             style="@style/wifi_item_edit_content"
    284                             android:singleLine="true"
    285                             android:hint="@string/wifi_ip_address_hint"
    286                             android:inputType="textNoSuggestions" />
    287                 </LinearLayout>
    288 
    289                 <LinearLayout
    290                         style="@style/wifi_item" >
    291                     <TextView
    292                             style="@style/wifi_item_label"
    293                             android:text="@string/wifi_gateway" />
    294 
    295                     <EditText android:id="@+id/gateway"
    296                             style="@style/wifi_item_edit_content"
    297                             android:singleLine="true"
    298                             android:hint="@string/wifi_gateway_hint"
    299                             android:inputType="textNoSuggestions" />
    300                 </LinearLayout>
    301 
    302                 <LinearLayout
    303                         style="@style/wifi_item" >
    304                     <TextView
    305                             style="@style/wifi_item_label"
    306                             android:text="@string/wifi_network_prefix_length" />
    307 
    308                     <EditText android:id="@+id/network_prefix_length"
    309                             style="@style/wifi_item_edit_content"
    310                             android:singleLine="true"
    311                             android:hint="@string/wifi_network_prefix_length_hint"
    312                             android:inputType="number" />
    313                 </LinearLayout>
    314                 <LinearLayout
    315                         style="@style/wifi_item" >
    316                     <TextView
    317                             style="@style/wifi_item_label"
    318                             android:text="@string/wifi_dns1" />
    319 
    320                     <EditText android:id="@+id/dns1"
    321                             style="@style/wifi_item_edit_content"
    322                             android:singleLine="true"
    323                             android:hint="@string/wifi_dns1_hint"
    324                             android:inputType="textNoSuggestions" />
    325                 </LinearLayout>
    326 
    327                 <LinearLayout
    328                         style="@style/wifi_item" >
    329                     <TextView
    330                             style="@style/wifi_item_label"
    331                             android:text="@string/wifi_dns2" />
    332 
    333                     <EditText android:id="@+id/dns2"
    334                             style="@style/wifi_item_edit_content"
    335                             android:singleLine="true"
    336                             android:hint="@string/wifi_dns2_hint"
    337                             android:inputType="textNoSuggestions" />
    338                 </LinearLayout>
    339             </LinearLayout>
    340         </LinearLayout>
    341     </LinearLayout>
    342 </ScrollView>
    343