1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2006 The Android Open Source Project
3
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-->
16<FrameLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:background="#fafafa"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:padding="@dimen/event_info_padding">
22    <RelativeLayout
23        android:id="@+id/event_info_loading_msg"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent">
26        <ProgressBar
27            android:id="@+id/event_info_progress_bar"
28            android:layout_width="100dip"
29            android:layout_height="100dip"
30            android:indeterminate="true"
31            android:layout_centerInParent="true" />
32        <TextView
33            android:layout_below="@id/event_info_progress_bar"
34            android:layout_centerHorizontal="true"
35            android:layout_marginTop="16dip"
36            android:text="@string/loading"
37            android:layout_width="wrap_content"
38            android:layout_height="wrap_content" />
39    </RelativeLayout>
40    <TextView
41            android:id="@+id/event_info_error_msg"
42            android:text="@string/event_not_found"
43            android:gravity="center"
44            android:layout_width="match_parent"
45            android:layout_height="match_parent" />
46    <ScrollView
47        xmlns:android="http://schemas.android.com/apk/res/android"
48        android:id="@+id/event_info_scroll_view"
49        android:orientation="vertical"
50        android:layout_width="match_parent"
51        android:fadingEdge="none"
52        android:animateLayoutChanges="true"
53        android:layout_height="match_parent">
54
55        <LinearLayout
56            android:layout_width="match_parent"
57            android:layout_height="wrap_content"
58            android:orientation="vertical">
59
60            <!--  Container for the event's headline
61                  Name, Date, Time & Location
62            -->
63            <include layout="@layout/event_info_headline" />
64
65            <LinearLayout
66                android:layout_width="match_parent"
67                android:layout_height="wrap_content"
68                android:paddingLeft="16dip"
69                android:paddingRight="16dip"
70                android:layout_marginTop="8dip"
71                android:orientation="vertical">
72                <!-- Calendar Owner -->
73                <LinearLayout
74                    android:id="@+id/calendar_container"
75                    android:visibility="gone"
76                    android:paddingRight="16dip"
77                    android:orientation="horizontal"
78                    android:layout_width="match_parent"
79                    android:layout_height="wrap_content">
80                    <TextView
81                        android:id="@+id/calendar_label"
82                        android:layout_width="wrap_content"
83                        android:layout_height="wrap_content"
84                        android:singleLine="true"
85                        android:text="@string/view_event_calendar_label"
86                        android:textColor="@color/event_info_organizer_color"
87                        style="?android:attr/textAppearanceSmall"
88                        android:textSize="14sp"/>
89                    <TextView
90                        android:id="@+id/calendar_name"
91                        android:layout_width="0px"
92                        android:layout_height="wrap_content"
93                        android:ellipsize="end"
94                        android:layout_weight="1"
95                        android:singleLine="true"
96                        android:layout_marginLeft="2dip"
97                        android:textIsSelectable="true"
98                        android:textColor="@color/event_info_organizer_color"
99                        style="?android:attr/textAppearanceSmall"
100                        android:textSize="14sp"/>
101                </LinearLayout>
102
103                <!-- Organizer -->
104                <LinearLayout
105                    android:id="@+id/organizer_container"
106                    android:visibility="gone"
107                    android:paddingRight="16dip"
108                    android:orientation="horizontal"
109                    android:layout_width="match_parent"
110                    android:layout_height="wrap_content">
111                    <TextView
112                        android:id="@+id/organizer_label"
113                        android:layout_width="wrap_content"
114                        android:layout_height="wrap_content"
115                        android:singleLine="true"
116                        android:text="@string/event_info_organizer"
117                        android:textColor="@color/event_info_organizer_color"
118                        style="?android:attr/textAppearanceSmall"
119                        android:textSize="14sp"/>
120                    <TextView
121                        android:id="@+id/organizer"
122                        android:layout_width="0px"
123                        android:layout_height="wrap_content"
124                        android:ellipsize="end"
125                        android:layout_weight="1"
126                        android:singleLine="true"
127                        android:layout_marginLeft="2dip"
128                        android:textIsSelectable="true"
129                        android:textColor="@color/event_info_organizer_color"
130                        style="?android:attr/textAppearanceSmall"
131                        android:textSize="14sp"/>
132                </LinearLayout>
133
134                <!-- DESCRIPTION -->
135                <include
136                    android:id="@+id/description"
137                    layout="@layout/expandable_textview" />
138
139            </LinearLayout>
140
141            <!-- RESPONSE -->
142            <LinearLayout
143                android:id="@+id/response_container"
144                android:visibility="gone"
145                android:orientation="vertical"
146                android:layout_width="match_parent"
147                android:layout_height="wrap_content">
148                <TextView
149                    android:id="@+id/response_label"
150                    android:layout_width="match_parent"
151                    android:layout_height="wrap_content"
152                    android:layout_gravity="center_vertical"
153                    android:paddingLeft="8dip"
154                    android:paddingRight="8dip"
155                    android:layout_marginLeft="8dip"
156                    android:layout_marginRight="8dip"
157                    android:textColor="@color/event_info_label_color"
158                    android:textAppearance="?android:attr/textAppearanceMedium"
159                    style="?android:attr/listSeparatorTextViewStyle"
160                    android:text="@string/view_event_response_label" />
161                <RadioGroup
162                    android:id="@+id/response_value"
163                    android:layout_width="match_parent"
164                    android:layout_height="wrap_content"
165                    android:minHeight="52dip"
166                    android:layout_gravity="center_vertical"
167                    android:paddingLeft="8dip"
168                    android:paddingRight="8dip"
169                    android:orientation="horizontal">
170                    <RadioButton
171                        android:id="@+id/response_yes"
172                        android:layout_width="wrap_content"
173                        android:layout_height="wrap_content"
174                        android:layout_weight="1"
175                        android:layout_gravity="center_vertical"
176                        android:gravity="center_vertical"
177                        style="?android:attr/textAppearanceMedium"
178                        android:textColor="@color/event_info_body_color"
179                        android:text="@string/response_yes" />
180                    <RadioButton
181                        android:id="@+id/response_maybe"
182                        android:layout_width="wrap_content"
183                        android:layout_height="wrap_content"
184                        android:layout_weight="1"
185                        android:layout_gravity="center_vertical"
186                        android:gravity="center_vertical"
187                        style="?android:attr/textAppearanceMedium"
188                        android:textColor="@color/event_info_body_color"
189                        android:text="@string/response_maybe" />
190                    <RadioButton
191                        android:id="@+id/response_no"
192                        android:layout_width="wrap_content"
193                        android:layout_height="wrap_content"
194                        android:layout_weight="1"
195                        android:layout_gravity="center_vertical"
196                        android:gravity="center_vertical"
197                        style="?android:attr/textAppearanceMedium"
198                        android:textColor="@color/event_info_body_color"
199                        android:text="@string/response_no" />
200                </RadioGroup>
201            </LinearLayout>
202
203            <!-- EMAIL GUESTS -->
204            <LinearLayout
205                android:id="@+id/email_attendees_container"
206                android:visibility="gone"
207                android:orientation="vertical"
208                android:layout_width="match_parent"
209                android:layout_height="wrap_content">
210                <View
211                    android:background="?android:attr/listDivider"
212                    android:layout_height="1px"
213                    android:layout_width="match_parent"
214                    android:layout_marginLeft="8dip"
215                    android:layout_marginRight="8dip" />
216                <Button
217                    android:id="@+id/email_attendees_button"
218                    android:text="@string/email_guests_label"
219                    android:layout_height="50dp"
220                    android:layout_width="match_parent"
221                    android:layout_marginLeft="6dp"
222                    android:layout_marginRight="8dp"
223                    android:gravity="center_vertical"
224                    android:paddingBottom="0dp"
225                    android:layout_marginTop="0dip"
226                    android:layout_marginBottom="0dip"
227                    android:textAllCaps="false"
228                    android:textSize="16sp"
229                    android:textColor="#777777"
230                    android:background="?android:attr/selectableItemBackground"
231                    android:drawableLeft="@drawable/event_info_mail_button"
232                    android:drawablePadding="8dp"
233                    style="@style/TextAppearance.EditEvent_LabelSmall" />
234            </LinearLayout>
235
236            <!-- LAUNCH CUSTOM APP -->
237            <LinearLayout
238                android:id="@+id/launch_custom_app_container"
239                android:visibility="gone"
240                android:orientation="vertical"
241                android:layout_width="match_parent"
242                android:layout_height="wrap_content">
243                <View
244                    android:background="?android:attr/listDivider"
245                    android:layout_height="1px"
246                    android:layout_width="match_parent"
247                    android:layout_marginLeft="8dip"
248                    android:layout_marginRight="8dip" />
249                <Button
250                    android:id="@+id/launch_custom_app_button"
251                    android:layout_height="50dp"
252                    android:layout_width="match_parent"
253                    android:layout_marginLeft="6dp"
254                    android:layout_marginRight="8dp"
255                    android:gravity="center_vertical"
256                    android:paddingBottom="0dp"
257                    android:layout_marginTop="0dip"
258                    android:layout_marginBottom="0dip"
259                    android:textAllCaps="false"
260                    android:textSize="16sp"
261                    android:textColor="#777777"
262                    android:background="?android:attr/selectableItemBackground"
263                    android:drawablePadding="8dp"
264                    style="@style/TextAppearance.EditEvent_LabelSmall" />
265            </LinearLayout>
266
267            <!-- REMINDERS -->
268            <TextView
269                android:layout_width="match_parent"
270                android:layout_height="wrap_content"
271                android:layout_gravity="center_vertical"
272                android:gravity="center_vertical"
273                android:paddingLeft="8dip"
274                android:paddingRight="8dip"
275                android:layout_marginLeft="8dip"
276                android:layout_marginRight="8dip"
277                android:layout_marginTop="4dip"
278                android:layout_marginBottom="0dip"
279                android:textAppearance="?android:attr/textAppearanceMedium"
280                style="?android:attr/listSeparatorTextViewStyle"
281                android:textColor="@color/event_info_label_color"
282                android:text="@string/event_info_reminders_label" />
283            <LinearLayout
284                android:id="@+id/reminder_items_container"
285                android:layout_width="match_parent"
286                android:layout_height="wrap_content"
287                android:layout_marginBottom="4dip"
288                android:layout_marginLeft="-8dip"
289                android:layout_marginRight="8dip"
290                android:orientation="vertical" />
291            <Button
292                android:id="@+id/reminder_add"
293                android:text="@string/reminders_label"
294                android:layout_height="wrap_content"
295                android:layout_width="match_parent"
296                android:layout_marginLeft="8dp"
297                android:layout_marginRight="8dp"
298                android:layout_gravity="center_vertical"
299                android:gravity="top"
300                android:paddingBottom="12dp"
301                android:layout_marginTop="0dip"
302                android:layout_marginBottom="0dip"
303                android:textAllCaps="false"
304                android:textSize="18sp"
305                android:textColor="#FF777777"
306                android:minHeight="20dip"
307                android:background="?android:attr/selectableItemBackground"
308                android:contentDescription="@string/accessibility_add_reminder"
309                style="@style/TextAppearance.EditEvent_LabelSmall" />
310        </LinearLayout>
311    </ScrollView>
312</FrameLayout>
313