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