blob: c625ad91814a7e614b24e014571f48a78951f4c1 [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"
81 android:paddingLeft="16dip"
82 android:paddingRight="16dip"
83 style="?android:attr/textAppearanceLarge"
84 android:textSize="30sp" />
85 <!-- BUTTONS -->
86 <LinearLayout
87 android:id="@+id/event_info_buttons_container"
88 android:orientation="horizontal"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content"
91 android:layout_marginLeft="16dip"
92 android:layout_marginRight="16dip"
93 android:layout_gravity="right">
94 <Button
95 android:id="@+id/edit"
96 android:layout_width="32dip"
97 android:layout_height="32dip"
98 android:layout_weight="1"
99 android:enabled="false"
Sara Ting42896f72012-03-15 15:24:36 -0700100 android:visibility="gone"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800101 android:layout_marginTop="8dip"
102 android:layout_marginRight="16dip"
103 style="?android:attr/buttonBarButtonStyle"
Isaac Katzenelson18ad8132012-03-02 14:52:31 -0800104 android:background="@drawable/event_info_compose_button" />
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800105 <Button
Sara Ting42896f72012-03-15 15:24:36 -0700106 android:id="@+id/mail"
107 android:layout_width="32dip"
108 android:layout_height="32dip"
109 android:layout_weight="1"
110 android:layout_marginTop="8dip"
111 android:layout_marginRight="16dip"
112 android:enabled="false"
113 android:visibility="gone"
114 style="?android:attr/buttonBarButtonStyle"
115 android:background="@drawable/event_info_mail_button" />
116 <Button
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800117 android:id="@+id/delete"
118 android:layout_width="32dip"
119 android:layout_height="32dip"
120 android:layout_marginTop="8dip"
121 android:layout_marginLeft="16dip"
122 android:layout_weight="1"
Sara Ting42896f72012-03-15 15:24:36 -0700123 android:enabled="false"
124 android:visibility="gone"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800125 style="?android:attr/buttonBarButtonStyle"
Isaac Katzenelson18ad8132012-03-02 14:52:31 -0800126 android:background="@drawable/event_info_delete_button" />
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800127 </LinearLayout>
128 </LinearLayout>
129
130 <!-- WHEN -->
Isaac Katzenelsond6e75832011-06-07 12:34:51 -0700131 <TextView
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800132 android:id="@+id/when_date"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700133 android:layout_width="wrap_content"
134 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800135 android:textSize="18sp"
136 android:layout_marginTop="2dip"
Isaac Katzenelson10b60212011-06-28 17:59:14 -0700137 android:paddingLeft="16dip"
RoboErik763b9302011-08-02 16:27:48 -0700138 android:paddingRight="16dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800139 android:textColor="@color/event_info_headline_color"
140 style="?android:attr/textAppearanceLarge" />
141
142 <TextView
143 android:id="@+id/when_time"
Isaac Katzenelsonfae6d5c2011-06-16 15:43:41 -0700144 android:layout_width="wrap_content"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700145 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800146 android:textSize="18sp"
147 android:paddingLeft="16dip"
148 android:paddingRight="16dip"
149 android:textColor="@color/event_info_headline_color"
150 style="?android:attr/textAppearanceLarge" />
151
152 <!-- WHERE -->
153 <TextView
154 android:id="@+id/where"
155 android:layout_width="match_parent"
156 android:layout_height="wrap_content"
157 android:ellipsize="end"
158 android:singleLine="false"
159 android:layout_marginTop="8dip"
160 android:textSize="18sp"
161 android:paddingLeft="16dip"
162 android:paddingRight="16dip"
163 android:textColor="@color/event_info_headline_color"
164 android:textColorLink="@color/event_info_headline_link_color"
165 style="?android:attr/textAppearanceLarge" />
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700166 </LinearLayout>
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700167
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800168 <!-- Organizer -->
RoboErikd4208ce2011-10-10 18:17:44 -0700169 <LinearLayout
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800170 android:id="@+id/organizer_container"
171 android:visibility="gone"
172 android:layout_marginTop="10dip"
173 android:orientation="horizontal"
174 android:layout_width="match_parent"
175 android:layout_height="wrap_content">
176 <TextView
177 android:id="@+id/organizer_label"
178 android:layout_width="wrap_content"
179 android:layout_height="wrap_content"
180 android:paddingLeft="16dip"
181 android:paddingRight="16dip"
182 android:singleLine="true"
183 android:text="@string/event_info_organizer"
184 android:textColor="@color/event_info_organizer_color"
185 style="?android:attr/textAppearanceSmall"
186 android:textSize="18sp"/>
187 <TextView
188 android:id="@+id/organizer"
189 android:layout_width="wrap_content"
190 android:layout_height="wrap_content"
191 android:ellipsize="end"
192 android:layout_weight="1"
193 android:singleLine="true"
194 android:layout_marginLeft="4dip"
195 android:layout_marginRight="8dip"
196 android:textColor="@color/event_info_organizer_color"
197 style="?android:attr/textAppearanceSmall"
198 android:textSize="18sp"/>
199 </LinearLayout>
200
201 <!-- DESCRIPTION -->
202 <include
203 android:id="@+id/description"
204 layout="@layout/expandable_textview" />
205
206 <!-- RESPONSE -->
207 <LinearLayout
208 android:id="@+id/response_container"
209 android:visibility="gone"
210 android:orientation="vertical"
211 android:layout_width="match_parent"
212 android:layout_height="wrap_content">
213 <TextView
214 android:id="@+id/response_label"
215 android:layout_width="match_parent"
216 android:layout_height="32dip"
217 android:layout_gravity="center_vertical"
218 android:paddingLeft="8dip"
219 android:paddingRight="16dip"
220 android:layout_marginTop="8dip"
221 android:layout_marginLeft="8dip"
222 android:textColor="@color/event_info_label_color"
223 android:textAppearance="?android:attr/textAppearanceMedium"
224 style="?android:attr/listSeparatorTextViewStyle"
225 android:text="@string/view_event_response_label" />
226 <RadioGroup
227 android:id="@+id/response_value"
228 android:layout_width="match_parent"
229 android:layout_height="wrap_content"
230 android:layout_gravity="center_vertical"
231 android:layout_marginTop="8dip"
232 android:layout_marginBottom="8dip"
233 android:paddingLeft="9dip"
234 android:orientation="horizontal">
235 <RadioButton
236 android:id="@+id/response_yes"
237 android:layout_width="0dip"
238 android:layout_height="wrap_content"
239 android:layout_weight="1"
240 android:minWidth="96dip"
241 style="?android:attr/textAppearanceMedium"
242 android:textColor="@color/event_info_body_color"
243 android:text="@string/response_yes" />
244 <RadioButton
245 android:id="@+id/response_maybe"
246 android:layout_width="0dip"
247 android:layout_height="wrap_content"
248 android:layout_weight="1"
249 android:minWidth="96dip"
250 style="?android:attr/textAppearanceMedium"
251 android:textColor="@color/event_info_body_color"
252 android:text="@string/response_maybe" />
253 <RadioButton
254 android:id="@+id/response_no"
255 android:layout_width="0dip"
256 android:layout_height="wrap_content"
257 android:layout_weight="1"
258 android:minWidth="96dip"
259 style="?android:attr/textAppearanceMedium"
260 android:textColor="@color/event_info_body_color"
261 android:text="@string/response_no" />
262 </RadioGroup>
263 </LinearLayout>
264 <!-- GUEST LIST -->
265 <com.android.calendar.event.AttendeesView
266 android:id="@+id/long_attendee_list"
267 android:textColor="@color/event_info_body_color"
268 android:orientation="vertical"
269 android:layout_height="wrap_content"
270 android:layout_width="match_parent"
271 android:visibility="gone"
272 android:layout_marginTop="5dip"/>
273
274 <!-- REMINDERS -->
275 <LinearLayout
276 android:id="@+id/reminders_row"
277 android:orientation="vertical"
RoboErikd4208ce2011-10-10 18:17:44 -0700278 android:layout_width="match_parent"
279 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800280 android:focusable="true">
281 <TextView
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800282 android:layout_width="match_parent"
283 android:layout_height="wrap_content"
284 android:layout_gravity="center_vertical"
285 android:paddingLeft="8dip"
286 android:paddingRight="16dip"
287 android:layout_marginTop="4dip"
288 android:layout_marginLeft="8dip"
289 android:textColor="@color/event_info_label_color"
290 android:textAppearance="?android:attr/textAppearanceMedium"
291 style="?android:attr/listSeparatorTextViewStyle"
292 android:text="@string/event_info_reminders_label" />
293 <LinearLayout
294 android:id="@+id/reminder_items_container"
295 android:layout_width="match_parent"
296 android:layout_height="wrap_content"
297 android:layout_marginLeft="-8dp"
298 android:layout_weight="1"
299 android:orientation="vertical" />
300 <Button
301 android:id="@+id/reminder_add"
302 android:text="@string/reminders_label"
303 android:layout_height="wrap_content"
304 android:layout_width="wrap_content"
305 android:layout_marginLeft="8dp"
306 android:layout_marginBottom="-6dp"
307 android:gravity="center_vertical|left"
308 android:textSize="18sp"
309 android:textColor="#FF777777"
310 android:minHeight="38dip"
311 android:background="?android:attr/selectableItemBackground"
312 android:contentDescription="@string/accessibility_add_reminder"
313 style="@style/TextAppearance.EditEvent_LabelSmall"
314 android:textAllCaps="false" />
315 </LinearLayout>
RoboErikd4208ce2011-10-10 18:17:44 -0700316 </LinearLayout>
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800317 </ScrollView>
318</FrameLayout>