blob: 8e9ac1f9ac1d783fe9186a585b40c62f9b7d90e3 [file] [log] [blame]
Andy Stadler7fd78d82010-11-15 18:37:56 -08001<?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
Andy Stadlere6c65872010-11-16 16:40:34 -080017<!-- Account Options - XL - portrait - see layout/ for small-screen version -->
Andy Stadler4f2f6032010-12-10 17:53:49 -080018<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
Andy Stadler7fd78d82010-11-15 18:37:56 -080019 android:layout_width="match_parent"
20 android:layout_height="match_parent"
Andy Stadler4f2f6032010-12-10 17:53:49 -080021 android:fillViewport="true"
Andy Stadler7fd78d82010-11-15 18:37:56 -080022 >
23
Andy Stadler4f2f6032010-12-10 17:53:49 -080024 <LinearLayout
Andy Stadler7fd78d82010-11-15 18:37:56 -080025 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
Andy Stadler4f2f6032010-12-10 17:53:49 -080027 android:orientation="vertical"
28 android:paddingLeft="96dip"
29 android:paddingRight="96dip"
Andy Stadler7fd78d82010-11-15 18:37:56 -080030 >
Andy Stadler7fd78d82010-11-15 18:37:56 -080031
Andy Stadler4f2f6032010-12-10 17:53:49 -080032 <RelativeLayout
33 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
35 android:layout_weight="1"
36 android:paddingTop="16dip"
37 >
Andy Stadler7fd78d82010-11-15 18:37:56 -080038
Andy Stadler4f2f6032010-12-10 17:53:49 -080039 <!-- Headline and hairline divider -->
40 <TextView
41 android:id="@+id/headline"
42 android:layout_alignParentTop="true"
43 android:layout_alignParentLeft="true"
44 android:layout_marginLeft="16dip"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:text="@string/account_setup_options_headline"
48 android:textAppearance="@style/accountSetupHeadline" />
49 <View
50 android:id="@+id/top_divider"
51 android:layout_below="@+id/headline"
52 android:layout_marginBottom="16dip"
53 android:layout_width="match_parent"
54 android:layout_height="1px"
55 android:background="@color/account_setup_divider_color" />
56
57 <!-- Layout on the top containing the setup info -->
58 <RelativeLayout
59 android:id="@+id/setup_options_section"
60 android:layout_below="@+id/top_divider"
61 android:layout_width="match_parent"
62 android:layout_height="wrap_content"
63 >
64 <!-- Spinners in a table to line everything up nicely -->
65 <TableLayout
66 android:id="@+id/spinners_table"
67 android:layout_alignParentTop="true"
68 android:layout_marginRight="96dip"
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 android:stretchColumns="1" >
72 <TableRow
73 android:paddingTop="16dip" >
74 <TextView
75 android:layout_height="wrap_content"
76 android:layout_width="wrap_content"
77 android:layout_marginRight="16dip"
78 android:text="@string/account_setup_options_mail_check_frequency_label"
79 android:textColor="?android:attr/textColorPrimary" />
80 <Spinner
81 android:id="@+id/account_check_frequency"
82 android:layout_height="wrap_content"
83 android:layout_width="match_parent" />
84 </TableRow>
85 <!-- 2nd row is shown only for EAS accounts -->
86 <TableRow
87 android:id="@+id/account_sync_window_row"
88 android:paddingTop="16dip"
89 android:visibility="gone" >
90 <TextView
91 android:layout_height="wrap_content"
92 android:layout_width="wrap_content"
93 android:layout_marginRight="16dip"
94 android:text="@string/account_setup_options_mail_window_label"
95 android:textColor="?android:attr/textColorPrimary" />
96 <Spinner
97 android:id="@+id/account_sync_window"
98 android:layout_height="wrap_content"
99 android:layout_width="match_parent" />
100 </TableRow>
101 </TableLayout>
102 <View
103 android:id="@+id/account_default_divider_upper"
104 android:layout_below="@+id/spinners_table"
105 android:layout_marginTop="32dip"
106 android:layout_width="match_parent"
107 android:layout_height="1px"
108 android:background="@color/account_setup_divider_color" />
109 <CheckBox
110 android:id="@+id/account_default"
111 android:layout_below="@+id/account_default_divider_upper"
112 android:layout_marginTop="16dip"
113 android:layout_marginBottom="16dip"
114 android:layout_marginLeft="32dip"
115 android:layout_height="wrap_content"
116 android:layout_width="match_parent"
117 android:text="@string/account_setup_options_default_label" />
118 <View
119 android:id="@+id/account_default_divider"
120 android:layout_below="@+id/account_default"
121 android:layout_width="match_parent"
122 android:layout_height="1px"
123 android:background="@color/account_setup_divider_color" />
124 <CheckBox
125 android:id="@+id/account_notify"
126 android:layout_below="@+id/account_default_divider"
127 android:layout_marginTop="16dip"
128 android:layout_marginBottom="16dip"
129 android:layout_marginLeft="32dip"
130 android:layout_height="wrap_content"
131 android:layout_width="match_parent"
132 android:text="@string/account_setup_options_notify_label" />
133 <View
134 android:id="@+id/account_notify_divider"
135 android:layout_below="@+id/account_notify"
136 android:layout_width="match_parent"
137 android:layout_height="1px"
138 android:background="@color/account_setup_divider_color" />
139 <!-- Contacts sync - hide unless EAS -->
140 <CheckBox
141 android:id="@+id/account_sync_contacts"
142 android:layout_below="@+id/account_notify_divider"
143 android:layout_marginTop="16dip"
144 android:layout_marginBottom="16dip"
145 android:layout_marginLeft="32dip"
146 android:layout_height="wrap_content"
147 android:layout_width="match_parent"
148 android:text="@string/account_setup_options_sync_contacts_label"
149 android:visibility="gone" />
150 <View
151 android:id="@+id/account_sync_contacts_divider"
152 android:layout_below="@+id/account_sync_contacts"
153 android:layout_width="match_parent"
154 android:layout_height="1px"
155 android:background="@color/account_setup_divider_color"
156 android:visibility="gone" />
157 <!-- Calendar sync - hide unless EAS -->
158 <CheckBox
159 android:id="@+id/account_sync_calendar"
160 android:layout_below="@+id/account_sync_contacts_divider"
161 android:layout_marginTop="16dip"
162 android:layout_marginBottom="16dip"
163 android:layout_marginLeft="32dip"
164 android:layout_height="wrap_content"
165 android:layout_width="match_parent"
166 android:text="@string/account_setup_options_sync_calendar_label"
167 android:visibility="gone" />
168 <View
169 android:id="@+id/account_sync_calendar_divider"
170 android:layout_below="@+id/account_sync_calendar"
171 android:layout_width="match_parent"
172 android:layout_height="1px"
173 android:background="@color/account_setup_divider_color"
174 android:visibility="gone" />
175 <!-- Email sync - always show -->
176 <CheckBox
177 android:id="@+id/account_sync_email"
178 android:layout_below="@+id/account_sync_calendar_divider"
179 android:layout_marginTop="16dip"
180 android:layout_marginBottom="16dip"
181 android:layout_marginLeft="32dip"
182 android:layout_height="wrap_content"
183 android:layout_width="match_parent"
184 android:text="@string/account_setup_options_sync_email_label" />
185 <View
186 android:id="@+id/account_sync_email_divider"
187 android:layout_below="@+id/account_sync_email"
188 android:layout_width="match_parent"
189 android:layout_height="1px"
190 android:background="@color/account_setup_divider_color" />
191 </RelativeLayout>
192 </RelativeLayout>
193
194 <!-- Buttons below -->
195 <RelativeLayout
196 android:layout_width="match_parent"
197 android:layout_height="wrap_content"
198 android:layout_marginBottom="48dip"
199 >
200 <Button
201 android:id="@+id/previous"
202 android:layout_alignParentTop="true"
203 android:layout_alignParentLeft="true"
204 style="@style/accountSetupButton"
205 android:text="@string/previous_action" />
206 <Button
207 android:id="@+id/next"
208 android:layout_alignParentTop="true"
209 android:layout_alignParentRight="true"
210 style="@style/accountSetupButton"
211 android:text="@string/next_action" />
212 </RelativeLayout>
213 </LinearLayout>
214</ScrollView>