• 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        android:textAppearance="?android:attr/textAppearanceSmall"
28        android:textColor="?android:attr/textColorPrimary" />
29    <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
30    <EditText
31        android:id="@+id/account_server"
32        android:inputType="textUri"
33        android:imeOptions="actionDone"
34        android:layout_height="wrap_content"
35        android:layout_width="match_parent" />
36    <TextView
37        android:text="@string/account_setup_outgoing_port_label"
38        android:layout_height="wrap_content"
39        android:layout_width="match_parent"
40        android:textAppearance="?android:attr/textAppearanceSmall"
41        android:textColor="?android:attr/textColorPrimary" />
42    <EditText
43        android:id="@+id/account_port"
44        android:inputType="number"
45        android:imeOptions="actionDone"
46        android:layout_height="wrap_content"
47        android:layout_width="match_parent" />
48    <TextView
49        android:text="@string/account_setup_outgoing_security_label"
50        android:layout_height="wrap_content"
51        android:layout_width="match_parent"
52        android:textAppearance="?android:attr/textAppearanceSmall"
53        android:textColor="?android:attr/textColorPrimary" />
54    <Spinner
55        android:id="@+id/account_security_type"
56        android:layout_height="wrap_content"
57        android:layout_width="match_parent" />
58    <CheckBox
59        android:id="@+id/account_require_login"
60        android:layout_width="match_parent"
61        android:layout_height="wrap_content"
62        android:text="@string/account_setup_outgoing_require_login_label" />
63    <LinearLayout
64        android:id="@+id/account_require_login_settings"
65        android:layout_width="match_parent"
66        android:layout_height="match_parent"
67        android:orientation="vertical"
68        android:visibility="gone">
69        <TextView
70            android:text="@string/account_setup_outgoing_username_label"
71            android:layout_height="wrap_content"
72            android:layout_width="match_parent"
73            android:textAppearance="?android:attr/textAppearanceSmall"
74            android:textColor="?android:attr/textColorPrimary" />
75        <EditText
76            android:id="@+id/account_username"
77            android:inputType="textEmailAddress"
78            android:imeOptions="actionDone"
79            android:layout_height="wrap_content"
80            android:layout_width="match_parent" />
81        <TextView
82            android:text="@string/account_setup_outgoing_password_label"
83            android:layout_height="wrap_content"
84            android:layout_width="match_parent"
85            android:textAppearance="?android:attr/textAppearanceSmall"
86            android:textColor="?android:attr/textColorPrimary" />
87        <EditText
88            android:id="@+id/account_password"
89            android:inputType="textPassword"
90            android:imeOptions="actionDone"
91            android:layout_height="wrap_content"
92            android:layout_width="match_parent" />
93    </LinearLayout>
94</LinearLayout>
95