• 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<!-- Exchange server settings - tablet - see layout/ for phone UX variant -->
18<!-- This is used directly by the account setup activity, but during settings it is
19     wrapped in an outer layout (account_settings_exchange_fragment) -->
20<TableLayout  xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:stretchColumns="1" >
24
25    <TableRow
26        android:paddingTop="16dip" >
27        <TextView
28            android:layout_height="wrap_content"
29            android:layout_width="wrap_content"
30            android:layout_marginRight="16dip"
31            android:text="@string/account_setup_exchange_username_label" />
32        <EditText
33            android:id="@+id/account_username"
34            android:layout_width="wrap_content"
35            android:layout_height="wrap_content"
36            android:contentDescription="@string/account_setup_exchange_username_label"
37            android:inputType="textEmailAddress"
38            android:imeOptions="actionDone" />
39    </TableRow>
40    <TableRow
41        android:paddingTop="16dip" >
42        <TextView
43            android:layout_height="wrap_content"
44            android:layout_width="wrap_content"
45            android:layout_marginRight="16dip"
46            android:text="@string/account_setup_incoming_password_label" />
47        <EditText
48            android:id="@+id/account_password"
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"
51            android:contentDescription="@string/account_setup_incoming_password_label"
52            android:inputType="textPassword"
53            android:imeOptions="actionDone" />
54    </TableRow>
55    <TableRow
56        android:paddingTop="16dip" >
57        <TextView
58            android:layout_height="wrap_content"
59            android:layout_width="wrap_content"
60            android:layout_marginRight="16dip"
61            android:text="@string/account_setup_exchange_server_label" />
62        <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
63        <EditText
64            android:id="@+id/account_server"
65            android:layout_width="wrap_content"
66            android:layout_height="wrap_content"
67            android:contentDescription="@string/account_setup_exchange_server_label"
68            android:inputType="textUri"
69            android:imeOptions="actionDone" />
70    </TableRow>
71    <!-- Note, this row is not a TableRow, and it will span the entire table - no columns -->
72    <LinearLayout
73        android:layout_width="match_parent"
74        android:layout_height="wrap_content"
75        android:layout_marginTop="32dip"
76        android:orientation="vertical" >
77        <View
78            android:layout_width="match_parent"
79            android:layout_height="1px"
80            android:background="@color/account_setup_divider_color" />
81        <CheckBox
82            android:id="@+id/account_ssl"
83            android:layout_marginTop="16dip"
84            android:layout_marginBottom="16dip"
85            android:layout_marginLeft="32dip"
86            android:layout_width="wrap_content"
87            android:layout_height="wrap_content"
88            android:text="@string/account_setup_exchange_ssl_label" />
89        <View
90            android:layout_width="match_parent"
91            android:layout_height="1px"
92            android:background="@color/account_setup_divider_color" />
93        <CheckBox
94            android:id="@+id/account_trust_certificates"
95            android:layout_marginTop="16dip"
96            android:layout_marginBottom="16dip"
97            android:layout_marginLeft="32dip"
98            android:layout_width="wrap_content"
99            android:layout_height="wrap_content"
100            android:text="@string/account_setup_exchange_trust_certificates_label"
101            android:visibility="gone" />
102        <View
103            android:id="@+id/account_trust_certificates_divider"
104            android:layout_width="match_parent"
105            android:layout_height="1px"
106            android:background="@color/account_setup_divider_color"
107            android:visibility="gone" />
108        <include
109            android:id="@+id/client_certificate_selector"
110            layout="@layout/client_certificate_selector"
111            android:visibility="gone" />
112        <View
113            android:id="@+id/client_certificate_divider"
114            android:layout_width="match_parent"
115            android:layout_height="1px"
116            android:background="@color/account_setup_divider_color"
117            android:visibility="gone" />
118    </LinearLayout>
119    <TableRow
120        android:paddingTop="16dip" >
121        <TextView
122            android:layout_height="wrap_content"
123            android:layout_width="wrap_content"
124            android:layout_marginRight="16dip"
125            android:text="@string/account_setup_incoming_port_label" />
126        <EditText
127            android:id="@+id/account_port"
128            android:layout_width="wrap_content"
129            android:layout_height="wrap_content"
130            android:contentDescription="@string/account_setup_incoming_port_label"
131            android:inputType="number"
132            android:imeOptions="actionDone" />
133    </TableRow>
134    <TableRow
135        android:paddingTop="32dip" >
136        <TextView
137            android:layout_height="wrap_content"
138            android:layout_width="wrap_content"
139            android:layout_marginRight="16dip"
140            android:text="@string/account_setup_exchange_device_id_label" />
141        <!-- TODO - when adding back in styles, this should be slightly different (was "medium") -->
142        <TextView
143            android:id="@+id/device_id"
144            android:layout_width="wrap_content"
145            android:layout_height="wrap_content"
146            android:textColor="#ffbebebe" />
147    </TableRow>
148</TableLayout>
149
150