blob: 1128d87e14f6e12c284691a99212e0050eb0af6f [file] [log] [blame]
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -07001<?xml version="1.0" encoding="utf-8"?>
Isaac Katzenelsond6e75832011-06-07 12:34:51 -07002<!-- Copyright (C) 2006 The Android Open Source Project
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -07003
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-->
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080016<FrameLayout
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -070017 xmlns:android="http://schemas.android.com/apk/res/android"
Isaac Katzenelsonfae6d5c2011-06-16 15:43:41 -070018 android:background="#fafafa"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080019 android:layout_width="match_parent"
Isaac Katzenelsonfae6d5c2011-06-16 15:43:41 -070020 android:layout_height="match_parent">
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080021 <RelativeLayout
22 android:id="@+id/event_info_loading_msg"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -070023 android:layout_width="match_parent"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080024 android:layout_height="match_parent">
25 <ProgressBar
26 android:id="@+id/event_info_progress_bar"
27 android:layout_width="100dip"
28 android:layout_height="100dip"
29 android:indeterminate="true"
30 android:layout_centerInParent="true" />
31 <TextView
32 android:layout_below="@id/event_info_progress_bar"
33 android:layout_centerHorizontal="true"
34 android:layout_marginTop="16dip"
35 android:text="@string/loading"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content" />
38 </RelativeLayout>
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -070039
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080040 <ScrollView
41 xmlns:android="http://schemas.android.com/apk/res/android"
42 android:id="@+id/event_info_scroll_view"
43 android:orientation="vertical"
44 android:layout_width="match_parent"
45 android:layout_weight="1"
46 android:layout_height="match_parent">
47
Isaac Katzenelsonfae6d5c2011-06-16 15:43:41 -070048 <LinearLayout
Isaac Katzenelsonfae6d5c2011-06-16 15:43:41 -070049 android:layout_width="match_parent"
50 android:layout_height="wrap_content"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -070051 android:layout_weight="1"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080052 android:padding="16dip"
53 android:orientation="vertical"
54 android:animateLayoutChanges="false">
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -070055
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080056 <!-- Container for the event's headline
57 Name, Date, Time & Location
58 -->
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -070059 <LinearLayout
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080060 android:id="@+id/event_info_headline"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -070061 android:layout_width="match_parent"
Isaac Katzenelsond6e75832011-06-07 12:34:51 -070062 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080063 android:paddingTop="12dip"
64 android:paddingBottom="16dip"
65 android:layout_weight="1"
66 android:orientation="vertical">
67
68 <LinearLayout
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 android:orientation="horizontal">
72 <!-- WHAT -->
73 <TextView
74 android:id="@+id/title"
75 android:layout_weight=".8"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:autoLink="all"
79 android:textStyle="bold"
80 android:textColor="@color/event_info_headline_color"
Michael Chan9906f942012-05-30 12:49:12 -070081 android:textColorLink="@color/event_info_headline_color"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080082 android:paddingLeft="16dip"
83 android:paddingRight="16dip"
84 style="?android:attr/textAppearanceLarge"
85 android:textSize="30sp" />
86 <!-- BUTTONS -->
87 <LinearLayout
88 android:id="@+id/event_info_buttons_container"
89 android:orientation="horizontal"
90 android:layout_width="wrap_content"
91 android:layout_height="wrap_content"
92 android:layout_marginLeft="16dip"
93 android:layout_marginRight="16dip"
94 android:layout_gravity="right">
95 <Button
96 android:id="@+id/edit"
97 android:layout_width="32dip"
98 android:layout_height="32dip"
99 android:layout_weight="1"
100 android:enabled="false"
Sara Ting42896f72012-03-15 15:24:36 -0700101 android:visibility="gone"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800102 android:layout_marginTop="8dip"
103 android:layout_marginRight="16dip"
104 style="?android:attr/buttonBarButtonStyle"
Isaac Katzenelson18ad8132012-03-02 14:52:31 -0800105 android:background="@drawable/event_info_compose_button" />
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800106 <Button
107 android:id="@+id/delete"
108 android:layout_width="32dip"
109 android:layout_height="32dip"
110 android:layout_marginTop="8dip"
111 android:layout_marginLeft="16dip"
112 android:layout_weight="1"
Sara Ting42896f72012-03-15 15:24:36 -0700113 android:enabled="false"
114 android:visibility="gone"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800115 style="?android:attr/buttonBarButtonStyle"
Isaac Katzenelson18ad8132012-03-02 14:52:31 -0800116 android:background="@drawable/event_info_delete_button" />
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800117 </LinearLayout>
118 </LinearLayout>
119
120 <!-- WHEN -->
Isaac Katzenelsond6e75832011-06-07 12:34:51 -0700121 <TextView
Sara Ting75f53662012-04-09 15:37:10 -0700122 android:id="@+id/when_datetime"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700123 android:layout_width="wrap_content"
124 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800125 android:textSize="18sp"
126 android:layout_marginTop="2dip"
Isaac Katzenelson10b60212011-06-28 17:59:14 -0700127 android:paddingLeft="16dip"
RoboErik763b9302011-08-02 16:27:48 -0700128 android:paddingRight="16dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800129 android:textColor="@color/event_info_headline_color"
130 style="?android:attr/textAppearanceLarge" />
131
132 <TextView
Sara Ting75f53662012-04-09 15:37:10 -0700133 android:id="@+id/when_repeat"
Isaac Katzenelsonfae6d5c2011-06-16 15:43:41 -0700134 android:layout_width="wrap_content"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700135 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800136 android:textSize="18sp"
137 android:paddingLeft="16dip"
138 android:paddingRight="16dip"
Sara Ting23acd262012-04-20 13:27:39 -0700139 android:textColor="@color/event_info_headline_transparent_color"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800140 style="?android:attr/textAppearanceLarge" />
141
142 <!-- WHERE -->
143 <TextView
144 android:id="@+id/where"
145 android:layout_width="match_parent"
146 android:layout_height="wrap_content"
147 android:ellipsize="end"
148 android:singleLine="false"
149 android:layout_marginTop="8dip"
150 android:textSize="18sp"
151 android:paddingLeft="16dip"
152 android:paddingRight="16dip"
153 android:textColor="@color/event_info_headline_color"
154 android:textColorLink="@color/event_info_headline_link_color"
155 style="?android:attr/textAppearanceLarge" />
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700156 </LinearLayout>
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700157
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800158 <!-- Organizer -->
RoboErikd4208ce2011-10-10 18:17:44 -0700159 <LinearLayout
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800160 android:id="@+id/organizer_container"
161 android:visibility="gone"
162 android:layout_marginTop="10dip"
163 android:orientation="horizontal"
164 android:layout_width="match_parent"
165 android:layout_height="wrap_content">
166 <TextView
167 android:id="@+id/organizer_label"
168 android:layout_width="wrap_content"
169 android:layout_height="wrap_content"
170 android:paddingLeft="16dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800171 android:singleLine="true"
172 android:text="@string/event_info_organizer"
173 android:textColor="@color/event_info_organizer_color"
174 style="?android:attr/textAppearanceSmall"
175 android:textSize="18sp"/>
176 <TextView
177 android:id="@+id/organizer"
Michael Chan585cbca2012-05-21 11:45:48 -0700178 android:layout_width="0px"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800179 android:layout_height="wrap_content"
180 android:ellipsize="end"
181 android:layout_weight="1"
182 android:singleLine="true"
183 android:layout_marginLeft="4dip"
184 android:layout_marginRight="8dip"
185 android:textColor="@color/event_info_organizer_color"
186 style="?android:attr/textAppearanceSmall"
187 android:textSize="18sp"/>
188 </LinearLayout>
189
190 <!-- DESCRIPTION -->
191 <include
192 android:id="@+id/description"
193 layout="@layout/expandable_textview" />
194
195 <!-- RESPONSE -->
196 <LinearLayout
197 android:id="@+id/response_container"
198 android:visibility="gone"
199 android:orientation="vertical"
200 android:layout_width="match_parent"
201 android:layout_height="wrap_content">
202 <TextView
203 android:id="@+id/response_label"
204 android:layout_width="match_parent"
Sara Tingcb5f5682012-04-04 22:52:20 -0700205 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800206 android:layout_gravity="center_vertical"
207 android:paddingLeft="8dip"
208 android:paddingRight="16dip"
209 android:layout_marginTop="8dip"
210 android:layout_marginLeft="8dip"
211 android:textColor="@color/event_info_label_color"
212 android:textAppearance="?android:attr/textAppearanceMedium"
213 style="?android:attr/listSeparatorTextViewStyle"
214 android:text="@string/view_event_response_label" />
215 <RadioGroup
216 android:id="@+id/response_value"
217 android:layout_width="match_parent"
218 android:layout_height="wrap_content"
Sara Tingcb5f5682012-04-04 22:52:20 -0700219 android:minHeight="52dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800220 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800221 android:paddingLeft="9dip"
222 android:orientation="horizontal">
223 <RadioButton
224 android:id="@+id/response_yes"
225 android:layout_width="0dip"
226 android:layout_height="wrap_content"
227 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700228 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800229 android:minWidth="96dip"
230 style="?android:attr/textAppearanceMedium"
231 android:textColor="@color/event_info_body_color"
232 android:text="@string/response_yes" />
233 <RadioButton
234 android:id="@+id/response_maybe"
235 android:layout_width="0dip"
236 android:layout_height="wrap_content"
237 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700238 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800239 android:minWidth="96dip"
240 style="?android:attr/textAppearanceMedium"
241 android:textColor="@color/event_info_body_color"
242 android:text="@string/response_maybe" />
243 <RadioButton
244 android:id="@+id/response_no"
245 android:layout_width="0dip"
246 android:layout_height="wrap_content"
247 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700248 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800249 android:minWidth="96dip"
250 style="?android:attr/textAppearanceMedium"
251 android:textColor="@color/event_info_body_color"
252 android:text="@string/response_no" />
253 </RadioGroup>
254 </LinearLayout>
Sara Tingcb5f5682012-04-04 22:52:20 -0700255
256 <!-- EMAIL GUESTS -->
257 <LinearLayout
258 android:id="@+id/email_attendees_container"
259 android:visibility="gone"
260 android:orientation="vertical"
261 android:layout_width="match_parent"
262 android:layout_height="wrap_content">
263 <View
264 android:background="?android:attr/listDivider"
265 android:layout_height="1px"
266 android:layout_width="match_parent"
267 android:layout_marginLeft="8dip"
268 android:layout_marginRight="0dip" />
269 <Button
270 android:id="@+id/email_attendees_button"
271 android:text="@string/email_guests_label"
272 android:layout_height="50dp"
273 android:layout_width="match_parent"
Michael Chan2c8485c2012-05-09 10:23:45 -0700274 android:layout_marginLeft="5dp"
Sara Tingcb5f5682012-04-04 22:52:20 -0700275 android:layout_marginRight="0dp"
276 android:layout_gravity="left"
277 android:gravity="center_vertical"
278 android:paddingBottom="0dp"
279 android:layout_marginTop="0dip"
280 android:layout_marginBottom="0dip"
281 android:textAllCaps="false"
282 android:textSize="16sp"
283 android:textColor="#777777"
284 android:background="?android:attr/selectableItemBackground"
285 android:drawableLeft="@drawable/event_info_mail_button"
286 android:drawablePadding="8dp"
287 style="@style/TextAppearance.EditEvent_LabelSmall" />
288 </LinearLayout>
289
Michael Chan2c8485c2012-05-09 10:23:45 -0700290 <!-- LAUNCH CUSTOM APP -->
291 <LinearLayout
292 android:id="@+id/launch_custom_app_container"
293 android:visibility="gone"
294 android:orientation="vertical"
295 android:layout_width="match_parent"
296 android:layout_height="wrap_content">
297 <View
298 android:background="?android:attr/listDivider"
299 android:layout_height="1px"
300 android:layout_width="match_parent"
301 android:layout_marginLeft="8dip"
302 android:layout_marginRight="0dip" />
303 <Button
304 android:id="@+id/launch_custom_app_button"
305 android:layout_height="50dp"
306 android:layout_width="match_parent"
307 android:layout_marginLeft="5dp"
308 android:layout_marginRight="0dp"
309 android:layout_gravity="left"
310 android:gravity="center_vertical"
311 android:paddingBottom="0dp"
312 android:layout_marginTop="0dip"
313 android:layout_marginBottom="0dip"
314 android:textAllCaps="false"
315 android:textSize="16sp"
316 android:textColor="#777777"
317 android:background="?android:attr/selectableItemBackground"
318 android:drawablePadding="8dp"
319 style="@style/TextAppearance.EditEvent_LabelSmall" />
320 </LinearLayout>
321
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800322 <!-- GUEST LIST -->
323 <com.android.calendar.event.AttendeesView
324 android:id="@+id/long_attendee_list"
325 android:textColor="@color/event_info_body_color"
326 android:orientation="vertical"
327 android:layout_height="wrap_content"
328 android:layout_width="match_parent"
329 android:visibility="gone"
330 android:layout_marginTop="5dip"/>
331
332 <!-- REMINDERS -->
333 <LinearLayout
334 android:id="@+id/reminders_row"
335 android:orientation="vertical"
RoboErikd4208ce2011-10-10 18:17:44 -0700336 android:layout_width="match_parent"
337 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800338 android:focusable="true">
339 <TextView
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800340 android:layout_width="match_parent"
341 android:layout_height="wrap_content"
342 android:layout_gravity="center_vertical"
343 android:paddingLeft="8dip"
344 android:paddingRight="16dip"
345 android:layout_marginTop="4dip"
346 android:layout_marginLeft="8dip"
347 android:textColor="@color/event_info_label_color"
348 android:textAppearance="?android:attr/textAppearanceMedium"
349 style="?android:attr/listSeparatorTextViewStyle"
350 android:text="@string/event_info_reminders_label" />
351 <LinearLayout
352 android:id="@+id/reminder_items_container"
353 android:layout_width="match_parent"
354 android:layout_height="wrap_content"
355 android:layout_marginLeft="-8dp"
356 android:layout_weight="1"
357 android:orientation="vertical" />
358 <Button
359 android:id="@+id/reminder_add"
360 android:text="@string/reminders_label"
361 android:layout_height="wrap_content"
Sara Tingcb5f5682012-04-04 22:52:20 -0700362 android:layout_width="match_parent"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800363 android:layout_marginLeft="8dp"
Sara Tingcb5f5682012-04-04 22:52:20 -0700364 android:layout_marginRight="0dp"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800365 android:layout_marginBottom="-6dp"
366 android:gravity="center_vertical|left"
367 android:textSize="18sp"
368 android:textColor="#FF777777"
369 android:minHeight="38dip"
370 android:background="?android:attr/selectableItemBackground"
371 android:contentDescription="@string/accessibility_add_reminder"
372 style="@style/TextAppearance.EditEvent_LabelSmall"
373 android:textAllCaps="false" />
374 </LinearLayout>
RoboErikd4208ce2011-10-10 18:17:44 -0700375 </LinearLayout>
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800376 </ScrollView>
377</FrameLayout>