blob: e51b7f24b2a21617126d7a16daa875d39a8aeb16 [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"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -070076 android:layout_width="0dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080077 android:layout_height="wrap_content"
78 android:autoLink="all"
Sara Ting68161942012-07-25 17:02:05 -070079 android:textIsSelectable="true"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080080 android:textStyle="bold"
81 android:textColor="@color/event_info_headline_color"
Michael Chan9906f942012-05-30 12:49:12 -070082 android:textColorLink="@color/event_info_headline_color"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080083 android:paddingLeft="16dip"
84 android:paddingRight="16dip"
85 style="?android:attr/textAppearanceLarge"
86 android:textSize="30sp" />
87 <!-- BUTTONS -->
88 <LinearLayout
89 android:id="@+id/event_info_buttons_container"
90 android:orientation="horizontal"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:layout_marginLeft="16dip"
94 android:layout_marginRight="16dip"
95 android:layout_gravity="right">
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -070096 <ImageButton
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080097 android:id="@+id/edit"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -070098 android:contentDescription="@string/edit_label"
99 android:layout_width="48dip"
100 android:layout_height="48dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800101 android:enabled="false"
Sara Ting42896f72012-03-15 15:24:36 -0700102 android:visibility="gone"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -0700103 android:layout_marginRight="8dip"
104 android:padding="8dip"
105 android:scaleType="centerInside"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800106 style="?android:attr/buttonBarButtonStyle"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -0700107 android:src="@drawable/ic_menu_compose_holo_dark" />
108 <ImageButton
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800109 android:id="@+id/delete"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -0700110 android:contentDescription="@string/delete_label"
111 android:layout_width="48dip"
112 android:layout_height="48dip"
113 android:layout_marginLeft="8dip"
114 android:padding="8dip"
115 android:scaleType="centerInside"
Sara Ting42896f72012-03-15 15:24:36 -0700116 android:enabled="false"
117 android:visibility="gone"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800118 style="?android:attr/buttonBarButtonStyle"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -0700119 android:src="@drawable/ic_menu_trash_holo_dark" />
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800120 </LinearLayout>
121 </LinearLayout>
122
123 <!-- WHEN -->
Isaac Katzenelsond6e75832011-06-07 12:34:51 -0700124 <TextView
Sara Ting75f53662012-04-09 15:37:10 -0700125 android:id="@+id/when_datetime"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700126 android:layout_width="wrap_content"
127 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800128 android:textSize="18sp"
129 android:layout_marginTop="2dip"
Isaac Katzenelson10b60212011-06-28 17:59:14 -0700130 android:paddingLeft="16dip"
RoboErik763b9302011-08-02 16:27:48 -0700131 android:paddingRight="16dip"
Sara Ting68161942012-07-25 17:02:05 -0700132 android:textIsSelectable="true"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800133 android:textColor="@color/event_info_headline_color"
134 style="?android:attr/textAppearanceLarge" />
135
136 <TextView
Sara Ting75f53662012-04-09 15:37:10 -0700137 android:id="@+id/when_repeat"
Isaac Katzenelsonfae6d5c2011-06-16 15:43:41 -0700138 android:layout_width="wrap_content"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700139 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800140 android:textSize="18sp"
141 android:paddingLeft="16dip"
142 android:paddingRight="16dip"
Sara Ting23acd262012-04-20 13:27:39 -0700143 android:textColor="@color/event_info_headline_transparent_color"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800144 style="?android:attr/textAppearanceLarge" />
145
146 <!-- WHERE -->
147 <TextView
148 android:id="@+id/where"
149 android:layout_width="match_parent"
150 android:layout_height="wrap_content"
151 android:ellipsize="end"
152 android:singleLine="false"
153 android:layout_marginTop="8dip"
154 android:textSize="18sp"
155 android:paddingLeft="16dip"
156 android:paddingRight="16dip"
Sara Ting68161942012-07-25 17:02:05 -0700157 android:textIsSelectable="true"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800158 android:textColor="@color/event_info_headline_color"
159 android:textColorLink="@color/event_info_headline_link_color"
160 style="?android:attr/textAppearanceLarge" />
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700161 </LinearLayout>
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700162
RoboErikd4208ce2011-10-10 18:17:44 -0700163 <LinearLayout
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800164 android:layout_marginTop="10dip"
Sara Ting6aad0ff2012-08-02 10:55:52 -0700165 android:orientation="vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800166 android:layout_width="match_parent"
Sara Ting6aad0ff2012-08-02 10:55:52 -0700167 android:layout_height="wrap_content" >
168
169 <!-- Calendar Owner -->
170 <LinearLayout
171 android:id="@+id/calendar_container"
172 android:visibility="gone"
173 android:orientation="horizontal"
174 android:layout_width="match_parent"
175 android:layout_height="wrap_content">
176 <TextView
177 android:id="@+id/calendar_label"
178 android:layout_width="wrap_content"
179 android:layout_height="wrap_content"
180 android:paddingLeft="16dip"
181 android:singleLine="true"
182 android:text="@string/view_event_calendar_label"
183 android:textColor="@color/event_info_organizer_color"
184 style="?android:attr/textAppearanceSmall"
185 android:textSize="18sp"/>
186 <TextView
187 android:id="@+id/calendar_name"
188 android:layout_width="0px"
189 android:layout_height="wrap_content"
190 android:ellipsize="end"
191 android:layout_weight="1"
192 android:singleLine="true"
193 android:layout_marginLeft="4dip"
194 android:layout_marginRight="8dip"
195 android:textIsSelectable="true"
196 android:textColor="@color/event_info_organizer_color"
197 style="?android:attr/textAppearanceSmall"
198 android:textSize="18sp"/>
199 </LinearLayout>
200
201 <!-- Organizer -->
202 <LinearLayout
203 android:id="@+id/organizer_container"
204 android:visibility="gone"
205 android:orientation="horizontal"
206 android:layout_width="match_parent"
207 android:layout_height="wrap_content">
208 <TextView
209 android:id="@+id/organizer_label"
210 android:layout_width="wrap_content"
211 android:layout_height="wrap_content"
212 android:paddingLeft="16dip"
213 android:singleLine="true"
214 android:text="@string/event_info_organizer"
215 android:textColor="@color/event_info_organizer_color"
216 style="?android:attr/textAppearanceSmall"
217 android:textSize="18sp"/>
218 <TextView
219 android:id="@+id/organizer"
220 android:layout_width="0px"
221 android:layout_height="wrap_content"
222 android:ellipsize="end"
223 android:layout_weight="1"
224 android:singleLine="true"
225 android:layout_marginLeft="4dip"
226 android:layout_marginRight="8dip"
227 android:textIsSelectable="true"
228 android:textColor="@color/event_info_organizer_color"
229 style="?android:attr/textAppearanceSmall"
230 android:textSize="18sp"/>
231 </LinearLayout>
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800232 </LinearLayout>
233
234 <!-- DESCRIPTION -->
235 <include
236 android:id="@+id/description"
237 layout="@layout/expandable_textview" />
238
239 <!-- RESPONSE -->
240 <LinearLayout
241 android:id="@+id/response_container"
242 android:visibility="gone"
243 android:orientation="vertical"
244 android:layout_width="match_parent"
245 android:layout_height="wrap_content">
246 <TextView
247 android:id="@+id/response_label"
248 android:layout_width="match_parent"
Sara Tingcb5f5682012-04-04 22:52:20 -0700249 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800250 android:layout_gravity="center_vertical"
251 android:paddingLeft="8dip"
252 android:paddingRight="16dip"
253 android:layout_marginTop="8dip"
254 android:layout_marginLeft="8dip"
255 android:textColor="@color/event_info_label_color"
256 android:textAppearance="?android:attr/textAppearanceMedium"
257 style="?android:attr/listSeparatorTextViewStyle"
258 android:text="@string/view_event_response_label" />
259 <RadioGroup
260 android:id="@+id/response_value"
261 android:layout_width="match_parent"
262 android:layout_height="wrap_content"
Sara Tingcb5f5682012-04-04 22:52:20 -0700263 android:minHeight="52dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800264 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800265 android:paddingLeft="9dip"
266 android:orientation="horizontal">
267 <RadioButton
268 android:id="@+id/response_yes"
269 android:layout_width="0dip"
270 android:layout_height="wrap_content"
271 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700272 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800273 android:minWidth="96dip"
274 style="?android:attr/textAppearanceMedium"
275 android:textColor="@color/event_info_body_color"
276 android:text="@string/response_yes" />
277 <RadioButton
278 android:id="@+id/response_maybe"
279 android:layout_width="0dip"
280 android:layout_height="wrap_content"
281 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700282 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800283 android:minWidth="96dip"
284 style="?android:attr/textAppearanceMedium"
285 android:textColor="@color/event_info_body_color"
286 android:text="@string/response_maybe" />
287 <RadioButton
288 android:id="@+id/response_no"
289 android:layout_width="0dip"
290 android:layout_height="wrap_content"
291 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700292 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800293 android:minWidth="96dip"
294 style="?android:attr/textAppearanceMedium"
295 android:textColor="@color/event_info_body_color"
296 android:text="@string/response_no" />
297 </RadioGroup>
298 </LinearLayout>
Sara Tingcb5f5682012-04-04 22:52:20 -0700299
300 <!-- EMAIL GUESTS -->
301 <LinearLayout
302 android:id="@+id/email_attendees_container"
303 android:visibility="gone"
304 android:orientation="vertical"
305 android:layout_width="match_parent"
306 android:layout_height="wrap_content">
307 <View
308 android:background="?android:attr/listDivider"
309 android:layout_height="1px"
310 android:layout_width="match_parent"
311 android:layout_marginLeft="8dip"
312 android:layout_marginRight="0dip" />
313 <Button
314 android:id="@+id/email_attendees_button"
315 android:text="@string/email_guests_label"
316 android:layout_height="50dp"
317 android:layout_width="match_parent"
Michael Chan2c8485c2012-05-09 10:23:45 -0700318 android:layout_marginLeft="5dp"
Sara Tingcb5f5682012-04-04 22:52:20 -0700319 android:layout_marginRight="0dp"
320 android:layout_gravity="left"
321 android:gravity="center_vertical"
322 android:paddingBottom="0dp"
323 android:layout_marginTop="0dip"
324 android:layout_marginBottom="0dip"
325 android:textAllCaps="false"
326 android:textSize="16sp"
327 android:textColor="#777777"
328 android:background="?android:attr/selectableItemBackground"
329 android:drawableLeft="@drawable/event_info_mail_button"
330 android:drawablePadding="8dp"
331 style="@style/TextAppearance.EditEvent_LabelSmall" />
332 </LinearLayout>
333
Michael Chan2c8485c2012-05-09 10:23:45 -0700334 <!-- LAUNCH CUSTOM APP -->
335 <LinearLayout
336 android:id="@+id/launch_custom_app_container"
337 android:visibility="gone"
338 android:orientation="vertical"
339 android:layout_width="match_parent"
340 android:layout_height="wrap_content">
341 <View
342 android:background="?android:attr/listDivider"
343 android:layout_height="1px"
344 android:layout_width="match_parent"
345 android:layout_marginLeft="8dip"
346 android:layout_marginRight="0dip" />
347 <Button
348 android:id="@+id/launch_custom_app_button"
349 android:layout_height="50dp"
350 android:layout_width="match_parent"
351 android:layout_marginLeft="5dp"
352 android:layout_marginRight="0dp"
353 android:layout_gravity="left"
354 android:gravity="center_vertical"
355 android:paddingBottom="0dp"
356 android:layout_marginTop="0dip"
357 android:layout_marginBottom="0dip"
358 android:textAllCaps="false"
359 android:textSize="16sp"
360 android:textColor="#777777"
361 android:background="?android:attr/selectableItemBackground"
362 android:drawablePadding="8dp"
363 style="@style/TextAppearance.EditEvent_LabelSmall" />
364 </LinearLayout>
365
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800366 <!-- GUEST LIST -->
367 <com.android.calendar.event.AttendeesView
368 android:id="@+id/long_attendee_list"
369 android:textColor="@color/event_info_body_color"
370 android:orientation="vertical"
371 android:layout_height="wrap_content"
372 android:layout_width="match_parent"
373 android:visibility="gone"
374 android:layout_marginTop="5dip"/>
375
376 <!-- REMINDERS -->
377 <LinearLayout
378 android:id="@+id/reminders_row"
379 android:orientation="vertical"
RoboErikd4208ce2011-10-10 18:17:44 -0700380 android:layout_width="match_parent"
381 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800382 android:focusable="true">
383 <TextView
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800384 android:layout_width="match_parent"
385 android:layout_height="wrap_content"
386 android:layout_gravity="center_vertical"
387 android:paddingLeft="8dip"
388 android:paddingRight="16dip"
389 android:layout_marginTop="4dip"
390 android:layout_marginLeft="8dip"
391 android:textColor="@color/event_info_label_color"
392 android:textAppearance="?android:attr/textAppearanceMedium"
393 style="?android:attr/listSeparatorTextViewStyle"
394 android:text="@string/event_info_reminders_label" />
395 <LinearLayout
396 android:id="@+id/reminder_items_container"
397 android:layout_width="match_parent"
398 android:layout_height="wrap_content"
399 android:layout_marginLeft="-8dp"
400 android:layout_weight="1"
401 android:orientation="vertical" />
402 <Button
403 android:id="@+id/reminder_add"
404 android:text="@string/reminders_label"
405 android:layout_height="wrap_content"
Sara Tingcb5f5682012-04-04 22:52:20 -0700406 android:layout_width="match_parent"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800407 android:layout_marginLeft="8dp"
Sara Tingcb5f5682012-04-04 22:52:20 -0700408 android:layout_marginRight="0dp"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800409 android:layout_marginBottom="-6dp"
410 android:gravity="center_vertical|left"
411 android:textSize="18sp"
412 android:textColor="#FF777777"
413 android:minHeight="38dip"
414 android:background="?android:attr/selectableItemBackground"
415 android:contentDescription="@string/accessibility_add_reminder"
416 style="@style/TextAppearance.EditEvent_LabelSmall"
417 android:textAllCaps="false" />
418 </LinearLayout>
RoboErikd4208ce2011-10-10 18:17:44 -0700419 </LinearLayout>
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800420 </ScrollView>
421</FrameLayout>