• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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_exchange_username_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            <EditText
41                android:id="@+id/account_username"
42                android:inputType="textEmailAddress"
43                android:imeOptions="actionDone"
44                android:layout_height="wrap_content"
45                android:layout_width="fill_parent" />
46            <TextView
47                android:text="@string/account_setup_incoming_password_label"
48                android:layout_height="wrap_content"
49                android:layout_width="fill_parent"
50                android:textAppearance="?android:attr/textAppearanceSmall"
51                android:textColor="?android:attr/textColorPrimary" />
52            <EditText
53                android:id="@+id/account_password"
54                android:inputType="textPassword"
55                android:imeOptions="actionDone"
56                android:layout_height="wrap_content"
57                android:layout_width="fill_parent" />
58            <!-- This text may be changed in code if the server is IMAP, etc. -->
59            <TextView
60                android:text="@string/account_setup_exchange_server_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            <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
66            <EditText
67                android:id="@+id/account_server"
68                android:inputType="textUri"
69                android:imeOptions="actionDone"
70                android:layout_height="wrap_content"
71                android:layout_width="fill_parent" />
72            <CheckBox
73                android:id="@+id/account_ssl"
74                android:layout_height="wrap_content"
75                android:layout_width="fill_parent"
76                android:text="@string/account_setup_exchange_ssl_label" />
77            <CheckBox
78                android:id="@+id/account_trust_certificates"
79                android:layout_height="wrap_content"
80                android:layout_width="fill_parent"
81                android:text="@string/account_setup_exchange_trust_certificates_label" />
82        </LinearLayout>
83
84        <RelativeLayout
85            android:layout_width="fill_parent"
86            android:layout_height="54dip"
87            android:background="@android:drawable/bottom_bar">
88            <Button
89                android:id="@+id/next"
90                android:text="@string/next_action"
91                android:layout_height="wrap_content"
92                android:layout_width="wrap_content"
93                android:minWidth="@dimen/button_minWidth"
94                android:drawableRight="@drawable/button_indicator_next"
95                android:layout_alignParentRight="true"
96                android:layout_centerVertical="true" />
97        </RelativeLayout>
98    </LinearLayout>
99</ScrollView>
100