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:layout_weight="1"
     22     android:orientation="vertical" >
     23 
     24     <TextView
     25         android:text="@string/account_setup_incoming_username_label"
     26         android:layout_height="wrap_content"
     27         android:layout_width="match_parent"
     28         style="@style/account_setup_label_text" />
     29     <EditText
     30         android:id="@+id/account_username"
     31         android:layout_height="wrap_content"
     32         android:layout_width="match_parent"
     33         android:hint="@string/account_setup_incoming_username_label"
     34         android:inputType="textEmailAddress" />
     35 
     36     <com.android.email.activity.setup.AuthenticationView
     37         android:id="@+id/authentication_view"
     38         android:layout_width="match_parent"
     39         android:layout_height="wrap_content"/>
     40 
     41     <include
     42         android:id="@+id/client_certificate_selector"
     43         layout="@layout/client_certificate_selector"
     44         android:visibility="gone" />
     45 
     46     <LinearLayout
     47         android:id="@+id/device_id_section"
     48         android:layout_width="match_parent"
     49         android:layout_height="wrap_content"
     50         android:orientation="vertical"
     51         android:visibility="gone"
     52         android:paddingTop="@dimen/setup_label_text_padding_top">
     53 
     54         <TextView
     55             android:text="@string/account_setup_exchange_device_id_label"
     56             android:layout_height="wrap_content"
     57             android:layout_width="match_parent"
     58             android:textColor="?android:attr/textColorPrimary" />
     59 
     60         <TextView
     61             android:id="@+id/device_id"
     62             android:layout_height="wrap_content"
     63             android:layout_width="match_parent"
     64             android:textAppearance="?android:attr/textAppearanceSmall"
     65             android:textColor="#ffbebebe" />
     66 
     67     </LinearLayout>
     68 
     69     <!-- This text may be changed in code if the server is IMAP, etc. -->
     70     <TextView
     71         android:id="@+id/account_server_label"
     72         android:text="@string/account_setup_incoming_server_label"
     73         android:layout_height="wrap_content"
     74         android:layout_width="match_parent"
     75         style="@style/account_setup_label_text" />
     76     <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
     77     <!-- This contentDescription may be changed in code if the server is IMAP, etc. -->
     78     <EditText
     79         android:id="@+id/account_server"
     80         android:layout_height="wrap_content"
     81         android:layout_width="match_parent"
     82         android:hint="@string/account_setup_incoming_server_label"
     83         android:inputType="textUri" />
     84     <TextView
     85         android:text="@string/account_setup_incoming_port_label"
     86         android:layout_height="wrap_content"
     87         android:layout_width="match_parent"
     88         style="@style/account_setup_label_text" />
     89     <EditText
     90         android:id="@+id/account_port"
     91         android:layout_height="wrap_content"
     92         android:layout_width="match_parent"
     93         android:hint="@string/account_setup_incoming_port_label"
     94         android:inputType="number" />
     95     <TextView
     96         android:text="@string/account_setup_incoming_security_label"
     97         android:layout_height="wrap_content"
     98         android:layout_width="match_parent"
     99         style="@style/account_setup_label_text" />
    100     <Spinner
    101         android:id="@+id/account_security_type"
    102         android:layout_height="wrap_content"
    103         android:layout_width="match_parent"
    104         android:contentDescription="@string/account_setup_incoming_security_label" />
    105     <TextView
    106         android:id="@+id/account_delete_policy_label"
    107         android:text="@string/account_setup_incoming_delete_policy_label"
    108         android:layout_height="wrap_content"
    109         android:layout_width="match_parent"
    110         style="@style/account_setup_label_text" />
    111     <Spinner
    112         android:id="@+id/account_delete_policy"
    113         android:layout_height="wrap_content"
    114         android:layout_width="match_parent"
    115         android:contentDescription="@string/account_setup_incoming_delete_policy_label" />
    116 
    117     <LinearLayout
    118         android:id="@+id/imap_path_prefix_section"
    119         android:layout_width="match_parent"
    120         android:layout_height="wrap_content"
    121         android:orientation="vertical">
    122         <TextView
    123             android:text="@string/account_setup_incoming_imap_path_prefix_label"
    124             android:layout_height="wrap_content"
    125             android:layout_width="match_parent"
    126             style="@style/account_setup_label_text" />
    127         <EditText
    128             android:id="@+id/imap_path_prefix"
    129             android:layout_height="wrap_content"
    130             android:layout_width="match_parent"
    131             android:hint="@string/account_setup_incoming_imap_path_prefix_hint"
    132             android:inputType="text" />
    133     </LinearLayout>
    134 </LinearLayout>
    135