blob: 2ec6bef8f7ef7aa86148baf4e674a0df0e39cda7 [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"
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">
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -070095 <ImageButton
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -080096 android:id="@+id/edit"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -070097 android:contentDescription="@string/edit_label"
98 android:layout_width="48dip"
99 android:layout_height="48dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800100 android:enabled="false"
Sara Ting42896f72012-03-15 15:24:36 -0700101 android:visibility="gone"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -0700102 android:layout_marginRight="8dip"
103 android:padding="8dip"
104 android:scaleType="centerInside"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800105 style="?android:attr/buttonBarButtonStyle"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -0700106 android:src="@drawable/ic_menu_compose_holo_dark" />
107 <ImageButton
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800108 android:id="@+id/delete"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -0700109 android:contentDescription="@string/delete_label"
110 android:layout_width="48dip"
111 android:layout_height="48dip"
112 android:layout_marginLeft="8dip"
113 android:padding="8dip"
114 android:scaleType="centerInside"
Sara Ting42896f72012-03-15 15:24:36 -0700115 android:enabled="false"
116 android:visibility="gone"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800117 style="?android:attr/buttonBarButtonStyle"
Isaac Katzenelsond4e45fa2012-06-04 16:38:11 -0700118 android:src="@drawable/ic_menu_trash_holo_dark" />
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800119 </LinearLayout>
120 </LinearLayout>
121
122 <!-- WHEN -->
Isaac Katzenelsond6e75832011-06-07 12:34:51 -0700123 <TextView
Sara Ting75f53662012-04-09 15:37:10 -0700124 android:id="@+id/when_datetime"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700125 android:layout_width="wrap_content"
126 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800127 android:textSize="18sp"
128 android:layout_marginTop="2dip"
Isaac Katzenelson10b60212011-06-28 17:59:14 -0700129 android:paddingLeft="16dip"
RoboErik763b9302011-08-02 16:27:48 -0700130 android:paddingRight="16dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800131 android:textColor="@color/event_info_headline_color"
132 style="?android:attr/textAppearanceLarge" />
133
134 <TextView
Sara Ting75f53662012-04-09 15:37:10 -0700135 android:id="@+id/when_repeat"
Isaac Katzenelsonfae6d5c2011-06-16 15:43:41 -0700136 android:layout_width="wrap_content"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700137 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800138 android:textSize="18sp"
139 android:paddingLeft="16dip"
140 android:paddingRight="16dip"
Sara Ting23acd262012-04-20 13:27:39 -0700141 android:textColor="@color/event_info_headline_transparent_color"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800142 style="?android:attr/textAppearanceLarge" />
143
144 <!-- WHERE -->
145 <TextView
146 android:id="@+id/where"
147 android:layout_width="match_parent"
148 android:layout_height="wrap_content"
149 android:ellipsize="end"
150 android:singleLine="false"
151 android:layout_marginTop="8dip"
152 android:textSize="18sp"
153 android:paddingLeft="16dip"
154 android:paddingRight="16dip"
155 android:textColor="@color/event_info_headline_color"
156 android:textColorLink="@color/event_info_headline_link_color"
157 style="?android:attr/textAppearanceLarge" />
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700158 </LinearLayout>
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700159
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800160 <!-- Organizer -->
RoboErikd4208ce2011-10-10 18:17:44 -0700161 <LinearLayout
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800162 android:id="@+id/organizer_container"
163 android:visibility="gone"
164 android:layout_marginTop="10dip"
165 android:orientation="horizontal"
166 android:layout_width="match_parent"
167 android:layout_height="wrap_content">
168 <TextView
169 android:id="@+id/organizer_label"
170 android:layout_width="wrap_content"
171 android:layout_height="wrap_content"
172 android:paddingLeft="16dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800173 android:singleLine="true"
174 android:text="@string/event_info_organizer"
175 android:textColor="@color/event_info_organizer_color"
176 style="?android:attr/textAppearanceSmall"
177 android:textSize="18sp"/>
178 <TextView
179 android:id="@+id/organizer"
Michael Chan585cbca2012-05-21 11:45:48 -0700180 android:layout_width="0px"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800181 android:layout_height="wrap_content"
182 android:ellipsize="end"
183 android:layout_weight="1"
184 android:singleLine="true"
185 android:layout_marginLeft="4dip"
186 android:layout_marginRight="8dip"
187 android:textColor="@color/event_info_organizer_color"
188 style="?android:attr/textAppearanceSmall"
189 android:textSize="18sp"/>
190 </LinearLayout>
191
192 <!-- DESCRIPTION -->
193 <include
194 android:id="@+id/description"
195 layout="@layout/expandable_textview" />
196
197 <!-- RESPONSE -->
198 <LinearLayout
199 android:id="@+id/response_container"
200 android:visibility="gone"
201 android:orientation="vertical"
202 android:layout_width="match_parent"
203 android:layout_height="wrap_content">
204 <TextView
205 android:id="@+id/response_label"
206 android:layout_width="match_parent"
Sara Tingcb5f5682012-04-04 22:52:20 -0700207 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800208 android:layout_gravity="center_vertical"
209 android:paddingLeft="8dip"
210 android:paddingRight="16dip"
211 android:layout_marginTop="8dip"
212 android:layout_marginLeft="8dip"
213 android:textColor="@color/event_info_label_color"
214 android:textAppearance="?android:attr/textAppearanceMedium"
215 style="?android:attr/listSeparatorTextViewStyle"
216 android:text="@string/view_event_response_label" />
217 <RadioGroup
218 android:id="@+id/response_value"
219 android:layout_width="match_parent"
220 android:layout_height="wrap_content"
Sara Tingcb5f5682012-04-04 22:52:20 -0700221 android:minHeight="52dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800222 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800223 android:paddingLeft="9dip"
224 android:orientation="horizontal">
225 <RadioButton
226 android:id="@+id/response_yes"
227 android:layout_width="0dip"
228 android:layout_height="wrap_content"
229 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700230 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800231 android:minWidth="96dip"
232 style="?android:attr/textAppearanceMedium"
233 android:textColor="@color/event_info_body_color"
234 android:text="@string/response_yes" />
235 <RadioButton
236 android:id="@+id/response_maybe"
237 android:layout_width="0dip"
238 android:layout_height="wrap_content"
239 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700240 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800241 android:minWidth="96dip"
242 style="?android:attr/textAppearanceMedium"
243 android:textColor="@color/event_info_body_color"
244 android:text="@string/response_maybe" />
245 <RadioButton
246 android:id="@+id/response_no"
247 android:layout_width="0dip"
248 android:layout_height="wrap_content"
249 android:layout_weight="1"
Sara Tingcb5f5682012-04-04 22:52:20 -0700250 android:layout_gravity="center_vertical"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800251 android:minWidth="96dip"
252 style="?android:attr/textAppearanceMedium"
253 android:textColor="@color/event_info_body_color"
254 android:text="@string/response_no" />
255 </RadioGroup>
256 </LinearLayout>
Sara Tingcb5f5682012-04-04 22:52:20 -0700257
258 <!-- EMAIL GUESTS -->
259 <LinearLayout
260 android:id="@+id/email_attendees_container"
261 android:visibility="gone"
262 android:orientation="vertical"
263 android:layout_width="match_parent"
264 android:layout_height="wrap_content">
265 <View
266 android:background="?android:attr/listDivider"
267 android:layout_height="1px"
268 android:layout_width="match_parent"
269 android:layout_marginLeft="8dip"
270 android:layout_marginRight="0dip" />
271 <Button
272 android:id="@+id/email_attendees_button"
273 android:text="@string/email_guests_label"
274 android:layout_height="50dp"
275 android:layout_width="match_parent"
Michael Chan2c8485c2012-05-09 10:23:45 -0700276 android:layout_marginLeft="5dp"
Sara Tingcb5f5682012-04-04 22:52:20 -0700277 android:layout_marginRight="0dp"
278 android:layout_gravity="left"
279 android:gravity="center_vertical"
280 android:paddingBottom="0dp"
281 android:layout_marginTop="0dip"
282 android:layout_marginBottom="0dip"
283 android:textAllCaps="false"
284 android:textSize="16sp"
285 android:textColor="#777777"
286 android:background="?android:attr/selectableItemBackground"
287 android:drawableLeft="@drawable/event_info_mail_button"
288 android:drawablePadding="8dp"
289 style="@style/TextAppearance.EditEvent_LabelSmall" />
290 </LinearLayout>
291
Michael Chan2c8485c2012-05-09 10:23:45 -0700292 <!-- LAUNCH CUSTOM APP -->
293 <LinearLayout
294 android:id="@+id/launch_custom_app_container"
295 android:visibility="gone"
296 android:orientation="vertical"
297 android:layout_width="match_parent"
298 android:layout_height="wrap_content">
299 <View
300 android:background="?android:attr/listDivider"
301 android:layout_height="1px"
302 android:layout_width="match_parent"
303 android:layout_marginLeft="8dip"
304 android:layout_marginRight="0dip" />
305 <Button
306 android:id="@+id/launch_custom_app_button"
307 android:layout_height="50dp"
308 android:layout_width="match_parent"
309 android:layout_marginLeft="5dp"
310 android:layout_marginRight="0dp"
311 android:layout_gravity="left"
312 android:gravity="center_vertical"
313 android:paddingBottom="0dp"
314 android:layout_marginTop="0dip"
315 android:layout_marginBottom="0dip"
316 android:textAllCaps="false"
317 android:textSize="16sp"
318 android:textColor="#777777"
319 android:background="?android:attr/selectableItemBackground"
320 android:drawablePadding="8dp"
321 style="@style/TextAppearance.EditEvent_LabelSmall" />
322 </LinearLayout>
323
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800324 <!-- GUEST LIST -->
325 <com.android.calendar.event.AttendeesView
326 android:id="@+id/long_attendee_list"
327 android:textColor="@color/event_info_body_color"
328 android:orientation="vertical"
329 android:layout_height="wrap_content"
330 android:layout_width="match_parent"
331 android:visibility="gone"
332 android:layout_marginTop="5dip"/>
333
334 <!-- REMINDERS -->
335 <LinearLayout
336 android:id="@+id/reminders_row"
337 android:orientation="vertical"
RoboErikd4208ce2011-10-10 18:17:44 -0700338 android:layout_width="match_parent"
339 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800340 android:focusable="true">
341 <TextView
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800342 android:layout_width="match_parent"
343 android:layout_height="wrap_content"
344 android:layout_gravity="center_vertical"
345 android:paddingLeft="8dip"
346 android:paddingRight="16dip"
347 android:layout_marginTop="4dip"
348 android:layout_marginLeft="8dip"
349 android:textColor="@color/event_info_label_color"
350 android:textAppearance="?android:attr/textAppearanceMedium"
351 style="?android:attr/listSeparatorTextViewStyle"
352 android:text="@string/event_info_reminders_label" />
353 <LinearLayout
354 android:id="@+id/reminder_items_container"
355 android:layout_width="match_parent"
356 android:layout_height="wrap_content"
357 android:layout_marginLeft="-8dp"
358 android:layout_weight="1"
359 android:orientation="vertical" />
360 <Button
361 android:id="@+id/reminder_add"
362 android:text="@string/reminders_label"
363 android:layout_height="wrap_content"
Sara Tingcb5f5682012-04-04 22:52:20 -0700364 android:layout_width="match_parent"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800365 android:layout_marginLeft="8dp"
Sara Tingcb5f5682012-04-04 22:52:20 -0700366 android:layout_marginRight="0dp"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800367 android:layout_marginBottom="-6dp"
368 android:gravity="center_vertical|left"
369 android:textSize="18sp"
370 android:textColor="#FF777777"
371 android:minHeight="38dip"
372 android:background="?android:attr/selectableItemBackground"
373 android:contentDescription="@string/accessibility_add_reminder"
374 style="@style/TextAppearance.EditEvent_LabelSmall"
375 android:textAllCaps="false" />
376 </LinearLayout>
RoboErikd4208ce2011-10-10 18:17:44 -0700377 </LinearLayout>
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800378 </ScrollView>
379</FrameLayout>