• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<!-- Outgoing 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    <TextView
24        android:text="@string/account_setup_outgoing_smtp_server_label"
25        android:layout_height="wrap_content"
26        android:layout_width="match_parent"
27        style="@style/account_setup_label_text" />
28    <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
29    <EditText
30        android:id="@+id/account_server"
31        android:inputType="textUri"
32        android:layout_height="wrap_content"
33        android:layout_width="match_parent" />
34    <TextView
35        android:text="@string/account_setup_outgoing_port_label"
36        android:layout_height="wrap_content"
37        android:layout_width="match_parent"
38        style="@style/account_setup_label_text" />
39    <EditText
40        android:id="@+id/account_port"
41        android:inputType="number"
42        android:layout_height="wrap_content"
43        android:layout_width="match_parent" />
44    <TextView
45        android:text="@string/account_setup_outgoing_security_label"
46        android:layout_height="wrap_content"
47        android:layout_width="match_parent"
48        style="@style/account_setup_label_text" />
49    <Spinner
50        android:id="@+id/account_security_type"
51        android:layout_height="wrap_content"
52        android:layout_width="match_parent" />
53    <CheckBox
54        android:id="@+id/account_require_login"
55        android:layout_width="match_parent"
56        android:layout_height="wrap_content"
57        android:text="@string/account_setup_outgoing_require_login_label" />
58    <LinearLayout
59        android:id="@+id/account_require_login_settings"
60        android:layout_width="match_parent"
61        android:layout_height="match_parent"
62        android:orientation="vertical"
63        android:visibility="gone">
64        <TextView
65            android:text="@string/account_setup_outgoing_username_label"
66            android:layout_height="wrap_content"
67            android:layout_width="match_parent"
68            style="@style/account_setup_label_text" />
69        <EditText
70            android:id="@+id/account_username"
71            android:inputType="textEmailAddress"
72            android:layout_height="wrap_content"
73            android:layout_width="match_parent" />
74        <com.android.email.activity.setup.AuthenticationView
75            android:id="@+id/authentication_view"
76            android:layout_width="match_parent"
77            android:layout_height="wrap_content"/>
78    </LinearLayout>
79</LinearLayout>
80