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