• 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<!-- Incoming 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_incoming_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_incoming_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_incoming_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        <!-- This text may be changed in code if the server is IMAP, etc. -->
58        <TextView
59            android:id="@+id/account_server_label"
60            android:layout_height="wrap_content"
61            android:layout_width="wrap_content"
62            android:layout_marginRight="16dip"
63            android:text="@string/account_setup_incoming_pop_server_label" />
64        <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
65        <EditText
66            android:id="@+id/account_server"
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:contentDescription="@string/account_setup_incoming_pop_server_label"
70            android:inputType="textUri"
71            android:imeOptions="actionDone" />
72    </TableRow>
73    <TableRow
74        android:paddingTop="16dip" >
75        <TextView
76            android:layout_height="wrap_content"
77            android:layout_width="wrap_content"
78            android:layout_marginRight="16dip"
79            android:text="@string/account_setup_incoming_security_label" />
80        <Spinner
81            android:id="@+id/account_security_type"
82            android:layout_width="wrap_content"
83            android:layout_height="wrap_content"
84            android:contentDescription="@string/account_setup_incoming_security_label" />
85    </TableRow>
86    <TableRow
87        android:paddingTop="16dip" >
88        <TextView
89            android:layout_height="wrap_content"
90            android:layout_width="wrap_content"
91            android:layout_marginRight="16dip"
92            android:text="@string/account_setup_incoming_port_label" />
93        <EditText
94            android:id="@+id/account_port"
95            android:layout_width="wrap_content"
96            android:layout_height="wrap_content"
97            android:contentDescription="@string/account_setup_incoming_port_label"
98            android:inputType="number"
99            android:imeOptions="actionDone" />
100    </TableRow>
101    <TableRow
102        android:paddingTop="16dip" >
103        <TextView
104            android:id="@+id/account_delete_policy_label"
105            android:layout_height="wrap_content"
106            android:layout_width="wrap_content"
107            android:layout_marginRight="16dip"
108            android:text="@string/account_setup_incoming_delete_policy_label" />
109        <Spinner
110            android:id="@+id/account_delete_policy"
111            android:layout_width="wrap_content"
112            android:layout_height="wrap_content"
113            android:contentDescription="@string/account_setup_incoming_delete_policy_label" />
114    </TableRow>
115    <TableRow
116        android:id="@+id/imap_path_prefix_section"
117        android:paddingTop="16dip" >
118        <TextView
119            android:layout_height="wrap_content"
120            android:layout_width="wrap_content"
121            android:layout_marginRight="16dip"
122            android:text="@string/account_setup_incoming_imap_path_prefix_label" />
123        <EditText
124            android:id="@+id/imap_path_prefix"
125            android:layout_width="wrap_content"
126            android:layout_height="wrap_content"
127            android:contentDescription="@string/account_setup_incoming_imap_path_prefix_label"
128            android:hint="@string/account_setup_incoming_imap_path_prefix_hint"
129            android:inputType="text"
130            android:imeOptions="actionDone" />
131    </TableRow>
132</TableLayout>
133
134