• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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<ScrollView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="fill_parent"
20    android:layout_height="fill_parent"
21    android:fillViewport="true"
22    android:scrollbarStyle="outsideInset" >
23
24    <LinearLayout
25        android:layout_width="fill_parent"
26        android:layout_height="fill_parent"
27        android:orientation="vertical" >
28
29        <LinearLayout
30            android:layout_width="fill_parent"
31            android:layout_height="wrap_content"
32            android:layout_weight="1"
33            android:orientation="vertical" >
34            <TextView
35                android:text="@string/account_setup_outgoing_smtp_server_label"
36                android:layout_height="wrap_content"
37                android:layout_width="fill_parent"
38                android:textAppearance="?android:attr/textAppearanceSmall"
39                android:textColor="?android:attr/textColorPrimary" />
40            <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
41            <EditText
42                android:id="@+id/account_server"
43                android:inputType="textUri"
44                android:imeOptions="actionDone"
45                android:layout_height="wrap_content"
46                android:layout_width="fill_parent" />
47            <TextView
48                android:text="@string/account_setup_outgoing_port_label"
49                android:layout_height="wrap_content"
50                android:layout_width="fill_parent"
51                android:textAppearance="?android:attr/textAppearanceSmall"
52                android:textColor="?android:attr/textColorPrimary" />
53            <EditText
54                android:id="@+id/account_port"
55                android:inputType="number"
56                android:imeOptions="actionDone"
57                android:layout_height="wrap_content"
58                android:layout_width="fill_parent" />
59            <TextView
60                android:text="@string/account_setup_outgoing_security_label"
61                android:layout_height="wrap_content"
62                android:layout_width="fill_parent"
63                android:textAppearance="?android:attr/textAppearanceSmall"
64                android:textColor="?android:attr/textColorPrimary" />
65            <Spinner
66                android:id="@+id/account_security_type"
67                android:layout_height="wrap_content"
68                android:layout_width="fill_parent" />
69            <CheckBox
70                android:id="@+id/account_require_login"
71                android:layout_width="fill_parent"
72                android:layout_height="wrap_content"
73                android:text="@string/account_setup_outgoing_require_login_label" />
74            <LinearLayout
75                android:id="@+id/account_require_login_settings"
76                android:layout_width="fill_parent"
77                android:layout_height="fill_parent"
78                android:orientation="vertical"
79                android:visibility="gone">
80                <TextView
81                    android:text="@string/account_setup_outgoing_username_label"
82                    android:layout_height="wrap_content"
83                    android:layout_width="fill_parent"
84                    android:textAppearance="?android:attr/textAppearanceSmall"
85                    android:textColor="?android:attr/textColorPrimary" />
86                <EditText
87                    android:id="@+id/account_username"
88                    android:inputType="textEmailAddress"
89                    android:imeOptions="actionDone"
90                    android:layout_height="wrap_content"
91                    android:layout_width="fill_parent" />
92                <TextView
93                    android:text="@string/account_setup_outgoing_password_label"
94                    android:layout_height="wrap_content"
95                    android:layout_width="fill_parent"
96                    android:textAppearance="?android:attr/textAppearanceSmall"
97                    android:textColor="?android:attr/textColorPrimary" />
98                <EditText
99                    android:id="@+id/account_password"
100                    android:inputType="textPassword"
101                    android:imeOptions="actionDone"
102                    android:layout_height="wrap_content"
103                    android:layout_width="fill_parent" />
104            </LinearLayout>
105        </LinearLayout>
106        <RelativeLayout
107            android:layout_width="fill_parent"
108            android:layout_height="54dip"
109            android:background="@android:drawable/bottom_bar">
110            <Button
111                android:id="@+id/next"
112                android:text="@string/next_action"
113                android:layout_height="wrap_content"
114                android:layout_width="wrap_content"
115                android:minWidth="@dimen/button_minWidth"
116                android:drawableRight="@drawable/button_indicator_next"
117                android:layout_alignParentRight="true"
118                android:layout_centerVertical="true" />
119        </RelativeLayout>
120    </LinearLayout>
121</ScrollView>
122