blob: 68c1e5b5c9ed6402994431ddeffd6c0345d50cb2 [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"
100 android:layout_marginTop="8dip"
101 android:layout_marginRight="16dip"
102 style="?android:attr/buttonBarButtonStyle"
103 android:background="@drawable/ic_menu_compose_holo_dark" />
104 <Button
105 android:id="@+id/delete"
106 android:layout_width="32dip"
107 android:layout_height="32dip"
108 android:layout_marginTop="8dip"
109 android:layout_marginLeft="16dip"
110 android:layout_weight="1"
111 style="?android:attr/buttonBarButtonStyle"
112 android:background="@drawable/ic_menu_trash_holo_dark" />
113 </LinearLayout>
114 </LinearLayout>
115
116 <!-- WHEN -->
Isaac Katzenelsond6e75832011-06-07 12:34:51 -0700117 <TextView
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800118 android:id="@+id/when_date"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700119 android:layout_width="wrap_content"
120 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800121 android:textSize="18sp"
122 android:layout_marginTop="2dip"
Isaac Katzenelson10b60212011-06-28 17:59:14 -0700123 android:paddingLeft="16dip"
RoboErik763b9302011-08-02 16:27:48 -0700124 android:paddingRight="16dip"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800125 android:textColor="@color/event_info_headline_color"
126 style="?android:attr/textAppearanceLarge" />
127
128 <TextView
129 android:id="@+id/when_time"
Isaac Katzenelsonfae6d5c2011-06-16 15:43:41 -0700130 android:layout_width="wrap_content"
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700131 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800132 android:textSize="18sp"
133 android:paddingLeft="16dip"
134 android:paddingRight="16dip"
135 android:textColor="@color/event_info_headline_color"
136 style="?android:attr/textAppearanceLarge" />
137
138 <!-- WHERE -->
139 <TextView
140 android:id="@+id/where"
141 android:layout_width="match_parent"
142 android:layout_height="wrap_content"
143 android:ellipsize="end"
144 android:singleLine="false"
145 android:layout_marginTop="8dip"
146 android:textSize="18sp"
147 android:paddingLeft="16dip"
148 android:paddingRight="16dip"
149 android:textColor="@color/event_info_headline_color"
150 android:textColorLink="@color/event_info_headline_link_color"
151 style="?android:attr/textAppearanceLarge" />
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700152 </LinearLayout>
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -0700153
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800154 <!-- Organizer -->
RoboErikd4208ce2011-10-10 18:17:44 -0700155 <LinearLayout
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800156 android:id="@+id/organizer_container"
157 android:visibility="gone"
158 android:layout_marginTop="10dip"
159 android:orientation="horizontal"
160 android:layout_width="match_parent"
161 android:layout_height="wrap_content">
162 <TextView
163 android:id="@+id/organizer_label"
164 android:layout_width="wrap_content"
165 android:layout_height="wrap_content"
166 android:paddingLeft="16dip"
167 android:paddingRight="16dip"
168 android:singleLine="true"
169 android:text="@string/event_info_organizer"
170 android:textColor="@color/event_info_organizer_color"
171 style="?android:attr/textAppearanceSmall"
172 android:textSize="18sp"/>
173 <TextView
174 android:id="@+id/organizer"
175 android:layout_width="wrap_content"
176 android:layout_height="wrap_content"
177 android:ellipsize="end"
178 android:layout_weight="1"
179 android:singleLine="true"
180 android:layout_marginLeft="4dip"
181 android:layout_marginRight="8dip"
182 android:textColor="@color/event_info_organizer_color"
183 style="?android:attr/textAppearanceSmall"
184 android:textSize="18sp"/>
185 </LinearLayout>
186
187 <!-- DESCRIPTION -->
188 <include
189 android:id="@+id/description"
190 layout="@layout/expandable_textview" />
191
192 <!-- RESPONSE -->
193 <LinearLayout
194 android:id="@+id/response_container"
195 android:visibility="gone"
196 android:orientation="vertical"
197 android:layout_width="match_parent"
198 android:layout_height="wrap_content">
199 <TextView
200 android:id="@+id/response_label"
201 android:layout_width="match_parent"
202 android:layout_height="32dip"
203 android:layout_gravity="center_vertical"
204 android:paddingLeft="8dip"
205 android:paddingRight="16dip"
206 android:layout_marginTop="8dip"
207 android:layout_marginLeft="8dip"
208 android:textColor="@color/event_info_label_color"
209 android:textAppearance="?android:attr/textAppearanceMedium"
210 style="?android:attr/listSeparatorTextViewStyle"
211 android:text="@string/view_event_response_label" />
212 <RadioGroup
213 android:id="@+id/response_value"
214 android:layout_width="match_parent"
215 android:layout_height="wrap_content"
216 android:layout_gravity="center_vertical"
217 android:layout_marginTop="8dip"
218 android:layout_marginBottom="8dip"
219 android:paddingLeft="9dip"
220 android:orientation="horizontal">
221 <RadioButton
222 android:id="@+id/response_yes"
223 android:layout_width="0dip"
224 android:layout_height="wrap_content"
225 android:layout_weight="1"
226 android:minWidth="96dip"
227 style="?android:attr/textAppearanceMedium"
228 android:textColor="@color/event_info_body_color"
229 android:text="@string/response_yes" />
230 <RadioButton
231 android:id="@+id/response_maybe"
232 android:layout_width="0dip"
233 android:layout_height="wrap_content"
234 android:layout_weight="1"
235 android:minWidth="96dip"
236 style="?android:attr/textAppearanceMedium"
237 android:textColor="@color/event_info_body_color"
238 android:text="@string/response_maybe" />
239 <RadioButton
240 android:id="@+id/response_no"
241 android:layout_width="0dip"
242 android:layout_height="wrap_content"
243 android:layout_weight="1"
244 android:minWidth="96dip"
245 style="?android:attr/textAppearanceMedium"
246 android:textColor="@color/event_info_body_color"
247 android:text="@string/response_no" />
248 </RadioGroup>
249 </LinearLayout>
250 <!-- GUEST LIST -->
251 <com.android.calendar.event.AttendeesView
252 android:id="@+id/long_attendee_list"
253 android:textColor="@color/event_info_body_color"
254 android:orientation="vertical"
255 android:layout_height="wrap_content"
256 android:layout_width="match_parent"
257 android:visibility="gone"
258 android:layout_marginTop="5dip"/>
259
260 <!-- REMINDERS -->
261 <LinearLayout
262 android:id="@+id/reminders_row"
263 android:orientation="vertical"
RoboErikd4208ce2011-10-10 18:17:44 -0700264 android:layout_width="match_parent"
265 android:layout_height="wrap_content"
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800266 android:focusable="true">
267 <TextView
268 android:id="@+id/response_label"
269 android:layout_width="match_parent"
270 android:layout_height="wrap_content"
271 android:layout_gravity="center_vertical"
272 android:paddingLeft="8dip"
273 android:paddingRight="16dip"
274 android:layout_marginTop="4dip"
275 android:layout_marginLeft="8dip"
276 android:textColor="@color/event_info_label_color"
277 android:textAppearance="?android:attr/textAppearanceMedium"
278 style="?android:attr/listSeparatorTextViewStyle"
279 android:text="@string/event_info_reminders_label" />
280 <LinearLayout
281 android:id="@+id/reminder_items_container"
282 android:layout_width="match_parent"
283 android:layout_height="wrap_content"
284 android:layout_marginLeft="-8dp"
285 android:layout_weight="1"
286 android:orientation="vertical" />
287 <Button
288 android:id="@+id/reminder_add"
289 android:text="@string/reminders_label"
290 android:layout_height="wrap_content"
291 android:layout_width="wrap_content"
292 android:layout_marginLeft="8dp"
293 android:layout_marginBottom="-6dp"
294 android:gravity="center_vertical|left"
295 android:textSize="18sp"
296 android:textColor="#FF777777"
297 android:minHeight="38dip"
298 android:background="?android:attr/selectableItemBackground"
299 android:contentDescription="@string/accessibility_add_reminder"
300 style="@style/TextAppearance.EditEvent_LabelSmall"
301 android:textAllCaps="false" />
302 </LinearLayout>
RoboErikd4208ce2011-10-10 18:17:44 -0700303 </LinearLayout>
Isaac Katzenelson8f4d9692012-02-23 17:34:07 -0800304 </ScrollView>
305</FrameLayout>