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