blob: 3ac2ff17ef811a9027561154fc9b45364098173c [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
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800163 <!-- Organizer -->
RoboErikd4208ce2011-10-10 18:17:44 -0700164 <LinearLayout
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800165 android:id="@+id/organizer_container"
166 android:visibility="gone"
167 android:layout_marginTop="10dip"
168 android:orientation="horizontal"
169 android:layout_width="match_parent"
170 android:layout_height="wrap_content">
171 <TextView
172 android:id="@+id/organizer_label"
173 android:layout_width="wrap_content"
174 android:layout_height="wrap_content"
175 android:paddingLeft="16dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800176 android:singleLine="true"
177 android:text="@string/event_info_organizer"
178 android:textColor="@color/event_info_organizer_color"
179 style="?android:attr/textAppearanceSmall"
180 android:textSize="18sp"/>
181 <TextView
182 android:id="@+id/organizer"
Michael Chan585cbca2012-05-21 11:45:48 -0700183 android:layout_width="0px"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800184 android:layout_height="wrap_content"
185 android:ellipsize="end"
186 android:layout_weight="1"
187 android:singleLine="true"
188 android:layout_marginLeft="4dip"
189 android:layout_marginRight="8dip"
Sara Ting68161942012-07-25 17:02:05 -0700190 android:textIsSelectable="true"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800191 android:textColor="@color/event_info_organizer_color"
192 style="?android:attr/textAppearanceSmall"
193 android:textSize="18sp"/>
194 </LinearLayout>
195
196 <!-- DESCRIPTION -->
197 <include
198 android:id="@+id/description"
199 layout="@layout/expandable_textview" />
200
201 <!-- RESPONSE -->
202 <LinearLayout
203 android:id="@+id/response_container"
204 android:visibility="gone"
205 android:orientation="vertical"
206 android:layout_width="match_parent"
207 android:layout_height="wrap_content">
208 <TextView
209 android:id="@+id/response_label"
210 android:layout_width="match_parent"
Sara Tingcb5f5682012-04-04 22:52:20 -0700211 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800212 android:layout_gravity="center_vertical"
213 android:paddingLeft="8dip"
214 android:paddingRight="16dip"
215 android:layout_marginTop="8dip"
216 android:layout_marginLeft="8dip"
217 android:textColor="@color/event_info_label_color"
218 android:textAppearance="?android:attr/textAppearanceMedium"
219 style="?android:attr/listSeparatorTextViewStyle"
220 android:text="@string/view_event_response_label" />
221 <RadioGroup
222 android:id="@+id/response_value"
223 android:layout_width="match_parent"
224 android:layout_height="wrap_content"
Sara Tingcb5f5682012-04-04 22:52:20 -0700225 android:minHeight="52dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800226 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800227 android:paddingLeft="9dip"
228 android:orientation="horizontal">
229 <RadioButton
230 android:id="@+id/response_yes"
231 android:layout_width="0dip"
232 android:layout_height="wrap_content"
233 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700234 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800235 android:minWidth="96dip"
236 style="?android:attr/textAppearanceMedium"
237 android:textColor="@color/event_info_body_color"
238 android:text="@string/response_yes" />
239 <RadioButton
240 android:id="@+id/response_maybe"
241 android:layout_width="0dip"
242 android:layout_height="wrap_content"
243 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700244 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800245 android:minWidth="96dip"
246 style="?android:attr/textAppearanceMedium"
247 android:textColor="@color/event_info_body_color"
248 android:text="@string/response_maybe" />
249 <RadioButton
250 android:id="@+id/response_no"
251 android:layout_width="0dip"
252 android:layout_height="wrap_content"
253 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700254 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800255 android:minWidth="96dip"
256 style="?android:attr/textAppearanceMedium"
257 android:textColor="@color/event_info_body_color"
258 android:text="@string/response_no" />
259 </RadioGroup>
260 </LinearLayout>
Sara Tingcb5f5682012-04-04 22:52:20 -0700261
262 <!-- EMAIL GUESTS -->
263 <LinearLayout
264 android:id="@+id/email_attendees_container"
265 android:visibility="gone"
266 android:orientation="vertical"
267 android:layout_width="match_parent"
268 android:layout_height="wrap_content">
269 <View
270 android:background="?android:attr/listDivider"
271 android:layout_height="1px"
272 android:layout_width="match_parent"
273 android:layout_marginLeft="8dip"
274 android:layout_marginRight="0dip" />
275 <Button
276 android:id="@+id/email_attendees_button"
277 android:text="@string/email_guests_label"
278 android:layout_height="50dp"
279 android:layout_width="match_parent"
Michael Chan2c8485c2012-05-09 10:23:45 -0700280 android:layout_marginLeft="5dp"
Sara Tingcb5f5682012-04-04 22:52:20 -0700281 android:layout_marginRight="0dp"
282 android:layout_gravity="left"
283 android:gravity="center_vertical"
284 android:paddingBottom="0dp"
285 android:layout_marginTop="0dip"
286 android:layout_marginBottom="0dip"
287 android:textAllCaps="false"
288 android:textSize="16sp"
289 android:textColor="#777777"
290 android:background="?android:attr/selectableItemBackground"
291 android:drawableLeft="@drawable/event_info_mail_button"
292 android:drawablePadding="8dp"
293 style="@style/TextAppearance.EditEvent_LabelSmall" />
294 </LinearLayout>
295
Michael Chan2c8485c2012-05-09 10:23:45 -0700296 <!-- LAUNCH CUSTOM APP -->
297 <LinearLayout
298 android:id="@+id/launch_custom_app_container"
299 android:visibility="gone"
300 android:orientation="vertical"
301 android:layout_width="match_parent"
302 android:layout_height="wrap_content">
303 <View
304 android:background="?android:attr/listDivider"
305 android:layout_height="1px"
306 android:layout_width="match_parent"
307 android:layout_marginLeft="8dip"
308 android:layout_marginRight="0dip" />
309 <Button
310 android:id="@+id/launch_custom_app_button"
311 android:layout_height="50dp"
312 android:layout_width="match_parent"
313 android:layout_marginLeft="5dp"
314 android:layout_marginRight="0dp"
315 android:layout_gravity="left"
316 android:gravity="center_vertical"
317 android:paddingBottom="0dp"
318 android:layout_marginTop="0dip"
319 android:layout_marginBottom="0dip"
320 android:textAllCaps="false"
321 android:textSize="16sp"
322 android:textColor="#777777"
323 android:background="?android:attr/selectableItemBackground"
324 android:drawablePadding="8dp"
325 style="@style/TextAppearance.EditEvent_LabelSmall" />
326 </LinearLayout>
327
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800328 <!-- GUEST LIST -->
329 <com.android.calendar.event.AttendeesView
330 android:id="@+id/long_attendee_list"
331 android:textColor="@color/event_info_body_color"
332 android:orientation="vertical"
333 android:layout_height="wrap_content"
334 android:layout_width="match_parent"
335 android:visibility="gone"
336 android:layout_marginTop="5dip"/>
337
338 <!-- REMINDERS -->
339 <LinearLayout
340 android:id="@+id/reminders_row"
341 android:orientation="vertical"
RoboErikd4208ce2011-10-10 18:17:44 -0700342 android:layout_width="match_parent"
343 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800344 android:focusable="true">
345 <TextView
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800346 android:layout_width="match_parent"
347 android:layout_height="wrap_content"
348 android:layout_gravity="center_vertical"
349 android:paddingLeft="8dip"
350 android:paddingRight="16dip"
351 android:layout_marginTop="4dip"
352 android:layout_marginLeft="8dip"
353 android:textColor="@color/event_info_label_color"
354 android:textAppearance="?android:attr/textAppearanceMedium"
355 style="?android:attr/listSeparatorTextViewStyle"
356 android:text="@string/event_info_reminders_label" />
357 <LinearLayout
358 android:id="@+id/reminder_items_container"
359 android:layout_width="match_parent"
360 android:layout_height="wrap_content"
361 android:layout_marginLeft="-8dp"
362 android:layout_weight="1"
363 android:orientation="vertical" />
364 <Button
365 android:id="@+id/reminder_add"
366 android:text="@string/reminders_label"
367 android:layout_height="wrap_content"
Sara Tingcb5f5682012-04-04 22:52:20 -0700368 android:layout_width="match_parent"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800369 android:layout_marginLeft="8dp"
Sara Tingcb5f5682012-04-04 22:52:20 -0700370 android:layout_marginRight="0dp"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800371 android:layout_marginBottom="-6dp"
372 android:gravity="center_vertical|left"
373 android:textSize="18sp"
374 android:textColor="#FF777777"
375 android:minHeight="38dip"
376 android:background="?android:attr/selectableItemBackground"
377 android:contentDescription="@string/accessibility_add_reminder"
378 style="@style/TextAppearance.EditEvent_LabelSmall"
379 android:textAllCaps="false" />
380 </LinearLayout>
RoboErikd4208ce2011-10-10 18:17:44 -0700381 </LinearLayout>
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800382 </ScrollView>
383</FrameLayout>