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 <!-- Incoming server settings - default - see layout-xlarge/ for XL variant -->
     18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:orientation="vertical" >
     22     <TextView
     23         android:text="@string/account_setup_incoming_username_label"
     24         android:layout_height="wrap_content"
     25         android:layout_width="match_parent"
     26         android:textAppearance="?android:attr/textAppearanceSmall"
     27         android:textColor="?android:attr/textColorPrimary" />
     28     <EditText
     29         android:id="@+id/account_username"
     30         android:layout_height="wrap_content"
     31         android:layout_width="match_parent"
     32         android:contentDescription="@string/account_setup_incoming_username_label"
     33         android:inputType="textEmailAddress"
     34         android:imeOptions="actionNext" />
     35     <TextView
     36         android:text="@string/account_setup_incoming_password_label"
     37         android:layout_height="wrap_content"
     38         android:layout_width="match_parent"
     39         android:textAppearance="?android:attr/textAppearanceSmall"
     40         android:textColor="?android:attr/textColorPrimary" />
     41     <EditText
     42         android:id="@+id/account_password"
     43         android:layout_height="wrap_content"
     44         android:layout_width="match_parent"
     45         android:contentDescription="@string/account_setup_incoming_password_label"
     46         android:inputType="textPassword"
     47         android:imeOptions="actionNext" />
     48     <!-- This text may be changed in code if the server is IMAP, etc. -->
     49     <TextView
     50         android:id="@+id/account_server_label"
     51         android:text="@string/account_setup_incoming_pop_server_label"
     52         android:layout_height="wrap_content"
     53         android:layout_width="match_parent"
     54         android:textAppearance="?android:attr/textAppearanceSmall"
     55         android:textColor="?android:attr/textColorPrimary" />
     56     <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
     57     <!-- This contentDescription may be changed in code if the server is IMAP, etc. -->
     58     <EditText
     59         android:id="@+id/account_server"
     60         android:layout_height="wrap_content"
     61         android:layout_width="match_parent"
     62         android:contentDescription="@string/account_setup_incoming_pop_server_label"
     63         android:inputType="textUri"
     64         android:imeOptions="actionNext" />
     65     <TextView
     66         android:text="@string/account_setup_incoming_port_label"
     67         android:layout_height="wrap_content"
     68         android:layout_width="match_parent"
     69         android:textAppearance="?android:attr/textAppearanceSmall"
     70         android:textColor="?android:attr/textColorPrimary" />
     71     <EditText
     72         android:id="@+id/account_port"
     73         android:layout_height="wrap_content"
     74         android:layout_width="match_parent"
     75         android:contentDescription="@string/account_setup_incoming_port_label"
     76         android:inputType="number"
     77         android:imeOptions="actionDone" />
     78     <TextView
     79         android:text="@string/account_setup_incoming_security_label"
     80         android:layout_height="wrap_content"
     81         android:layout_width="match_parent"
     82         android:textAppearance="?android:attr/textAppearanceSmall"
     83         android:textColor="?android:attr/textColorPrimary" />
     84     <Spinner
     85         android:id="@+id/account_security_type"
     86         android:layout_height="wrap_content"
     87         android:layout_width="match_parent"
     88         android:contentDescription="@string/account_setup_incoming_security_label" />
     89     <TextView
     90         android:id="@+id/account_delete_policy_label"
     91         android:text="@string/account_setup_incoming_delete_policy_label"
     92         android:layout_height="wrap_content"
     93         android:layout_width="match_parent"
     94         android:textAppearance="?android:attr/textAppearanceSmall"
     95         android:textColor="?android:attr/textColorPrimary" />
     96     <Spinner
     97         android:id="@+id/account_delete_policy"
     98         android:layout_height="wrap_content"
     99         android:layout_width="match_parent"
    100         android:contentDescription="@string/account_setup_incoming_delete_policy_label" />
    101     <LinearLayout
    102         android:id="@+id/imap_path_prefix_section"
    103         android:layout_width="match_parent"
    104         android:layout_height="wrap_content"
    105         android:orientation="vertical">
    106         <TextView
    107             android:text="@string/account_setup_incoming_imap_path_prefix_label"
    108             android:layout_height="wrap_content"
    109             android:layout_width="match_parent"
    110             android:textAppearance="?android:attr/textAppearanceSmall"
    111             android:textColor="?android:attr/textColorPrimary" />
    112         <EditText
    113             android:id="@+id/imap_path_prefix"
    114             android:layout_height="wrap_content"
    115             android:layout_width="match_parent"
    116             android:contentDescription="@string/account_setup_incoming_imap_path_prefix_label"
    117             android:hint="@string/account_setup_incoming_imap_path_prefix_hint"
    118             android:inputType="text"
    119             android:imeOptions="actionDone" />
    120     </LinearLayout>
    121 </LinearLayout>
    122