• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<!-- Common data-entry area of account options setup screen - check freq, options, etc. -->
18<!-- tablet version -->
19<RelativeLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:paddingLeft="@dimen/setup_item_inset_left"
24    android:paddingRight="@dimen/setup_item_inset_right"
25    >
26    <!-- Spinners in a table to line everything up nicely -->
27    <TableLayout
28        android:id="@+id/spinners_table"
29        android:layout_alignParentTop="true"
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:stretchColumns="1" >
33        <TableRow
34            android:paddingTop="16dip" >
35            <TextView
36                android:layout_height="wrap_content"
37                android:layout_width="wrap_content"
38                android:layout_marginRight="16dip"
39                android:text="@string/account_setup_options_mail_check_frequency_label"
40                android:textColor="?android:attr/textColorPrimary" />
41            <Spinner
42                android:id="@+id/account_check_frequency"
43                android:layout_height="wrap_content"
44                android:layout_width="match_parent" />
45        </TableRow>
46        <!-- 2nd row is shown only for EAS accounts -->
47        <TableRow
48            android:id="@+id/account_sync_window_row"
49            android:paddingTop="16dip"
50            android:visibility="gone" >
51            <TextView
52                android:layout_height="wrap_content"
53                android:layout_width="wrap_content"
54                android:layout_marginRight="16dip"
55                android:text="@string/account_setup_options_mail_window_label"
56                android:textColor="?android:attr/textColorPrimary" />
57            <Spinner
58                android:id="@+id/account_sync_window"
59                android:layout_height="wrap_content"
60                android:layout_width="match_parent" />
61        </TableRow>
62    </TableLayout>
63    <View
64        android:id="@+id/account_default_divider_upper"
65        android:layout_below="@+id/spinners_table"
66        android:layout_marginTop="32dip"
67        android:layout_width="match_parent"
68        android:layout_height="1px"
69        android:background="@color/account_setup_divider_color" />
70    <CheckBox
71        android:id="@+id/account_default"
72        android:layout_below="@+id/account_default_divider_upper"
73        android:layout_marginTop="16dip"
74        android:layout_marginBottom="16dip"
75        android:layout_marginLeft="32dip"
76        android:layout_height="wrap_content"
77        android:layout_width="match_parent"
78        android:text="@string/account_setup_options_default_label" />
79    <View
80        android:id="@+id/account_default_divider"
81        android:layout_below="@+id/account_default"
82        android:layout_width="match_parent"
83        android:layout_height="1px"
84        android:background="@color/account_setup_divider_color" />
85    <CheckBox
86        android:id="@+id/account_notify"
87        android:layout_below="@+id/account_default_divider"
88        android:layout_marginTop="16dip"
89        android:layout_marginBottom="16dip"
90        android:layout_marginLeft="32dip"
91        android:layout_height="wrap_content"
92        android:layout_width="match_parent"
93        android:text="@string/account_setup_options_notify_label" />
94    <View
95        android:id="@+id/account_notify_divider"
96        android:layout_below="@+id/account_notify"
97        android:layout_width="match_parent"
98        android:layout_height="1px"
99        android:background="@color/account_setup_divider_color" />
100    <!-- Contacts sync - hide unless EAS -->
101    <CheckBox
102        android:id="@+id/account_sync_contacts"
103        android:layout_below="@+id/account_notify_divider"
104        android:layout_marginTop="16dip"
105        android:layout_marginBottom="16dip"
106        android:layout_marginLeft="32dip"
107        android:layout_height="wrap_content"
108        android:layout_width="match_parent"
109        android:text="@string/account_setup_options_sync_contacts_label"
110        android:visibility="gone" />
111    <View
112        android:id="@+id/account_sync_contacts_divider"
113        android:layout_below="@+id/account_sync_contacts"
114        android:layout_width="match_parent"
115        android:layout_height="1px"
116        android:background="@color/account_setup_divider_color"
117        android:visibility="gone" />
118    <!-- Calendar sync - hide unless EAS -->
119    <CheckBox
120        android:id="@+id/account_sync_calendar"
121        android:layout_below="@+id/account_sync_contacts_divider"
122        android:layout_marginTop="16dip"
123        android:layout_marginBottom="16dip"
124        android:layout_marginLeft="32dip"
125        android:layout_height="wrap_content"
126        android:layout_width="match_parent"
127        android:text="@string/account_setup_options_sync_calendar_label"
128        android:visibility="gone" />
129    <View
130        android:id="@+id/account_sync_calendar_divider"
131        android:layout_below="@+id/account_sync_calendar"
132        android:layout_width="match_parent"
133        android:layout_height="1px"
134        android:background="@color/account_setup_divider_color"
135        android:visibility="gone" />
136    <!-- Email sync - always show -->
137    <CheckBox
138        android:id="@+id/account_sync_email"
139        android:layout_below="@+id/account_sync_calendar_divider"
140        android:layout_marginTop="16dip"
141        android:layout_marginBottom="16dip"
142        android:layout_marginLeft="32dip"
143        android:layout_height="wrap_content"
144        android:layout_width="match_parent"
145        android:text="@string/account_setup_options_sync_email_label" />
146    <View
147        android:id="@+id/account_sync_email_divider"
148        android:layout_below="@+id/account_sync_email"
149        android:layout_width="match_parent"
150        android:layout_height="1px"
151        android:background="@color/account_setup_divider_color" />
152    <!-- Auto-download attachments - always show, unless POP3 -->
153    <CheckBox
154        android:id="@+id/account_background_attachments"
155        android:layout_below="@+id/account_sync_email_divider"
156        android:layout_marginTop="16dip"
157        android:layout_marginBottom="16dip"
158        android:layout_marginLeft="32dip"
159        android:layout_height="wrap_content"
160        android:layout_width="match_parent"
161        android:text="@string/account_setup_options_background_attachments_label" />
162    <View
163        android:id="@+id/account_background_attachments_divider"
164        android:layout_below="@+id/account_sync_email"
165        android:layout_width="match_parent"
166        android:layout_height="1px"
167        android:background="@color/account_setup_divider_color" />
168</RelativeLayout>
169