• 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_outgoing_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_outgoing_smtp_server_label"
32            style="@style/account_setup_label_text" />
33        <!-- Note: we use inputType=textUri as the closest approximation to a server name -->
34        <EditText
35            android:id="@+id/account_server"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:inputType="textUri" />
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_outgoing_security_label"
47            style="@style/account_setup_label_text" />
48        <Spinner
49            android:id="@+id/account_security_type"
50            android:layout_width="wrap_content"
51            android:layout_height="wrap_content"
52            android:contentDescription="@string/account_setup_outgoing_security_label" />
53    </TableRow>
54    <TableRow
55        android:paddingTop="16dip" >
56        <TextView
57            android:layout_height="wrap_content"
58            android:layout_width="wrap_content"
59            android:layout_marginRight="16dip"
60            android:text="@string/account_setup_outgoing_port_label"
61            style="@style/account_setup_label_text" />
62        <EditText
63            android:id="@+id/account_port"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:inputType="number" />
67    </TableRow>
68    <!-- Note, this row is not a TableRow, and it will span the entire table - no columns -->
69    <LinearLayout
70        android:layout_width="match_parent"
71        android:layout_height="wrap_content"
72        android:layout_marginTop="32dip"
73        android:orientation="vertical" >
74        <View
75            android:layout_width="match_parent"
76            android:layout_height="1px"
77            android:background="@color/account_setup_divider_color" />
78        <CheckBox
79            android:id="@+id/account_require_login"
80            android:layout_marginTop="16dip"
81            android:layout_marginBottom="16dip"
82            android:layout_marginLeft="32dip"
83            android:layout_width="wrap_content"
84            android:layout_height="wrap_content"
85            android:text="@string/account_setup_outgoing_require_login_label" />
86        <View
87            android:layout_width="match_parent"
88            android:layout_height="1px"
89            android:background="@color/account_setup_divider_color" />
90    </LinearLayout>
91    <TableRow
92        android:id="@+id/account_require_login_settings"
93        android:paddingTop="16dip"
94        android:visibility="gone" >
95        <TextView
96            android:layout_height="wrap_content"
97            android:layout_width="wrap_content"
98            android:layout_marginRight="16dip"
99            android:text="@string/account_setup_outgoing_username_label"
100            style="@style/account_setup_label_text" />
101        <EditText
102            android:id="@+id/account_username"
103            android:layout_width="wrap_content"
104            android:layout_height="wrap_content"
105            android:inputType="textEmailAddress" />
106    </TableRow>
107    <TableRow
108        android:id="@+id/account_require_login_settings_2"
109        android:paddingTop="16dip"
110        android:visibility="gone" >
111        <!-- This text may be changed in code if the we are using OAuth, etc.-->
112        <TextView
113            android:id="@+id/authentication_label"
114            android:layout_height="wrap_content"
115            android:layout_width="wrap_content"
116            android:layout_marginRight="16dip"
117            android:contentDescription="@string/authentication_label"
118            android:text="@string/authentication_label"
119            style="@style/account_setup_label_text" />
120        <com.android.email.activity.setup.AuthenticationView
121            android:id="@+id/authentication_view"
122            android:layout_width="match_parent"
123            android:layout_height="wrap_content"/>
124    </TableRow>
125</TableLayout>
126