event_info_dialog.xml revision 6816194681705012b524d2de833603b59dba8261
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    <RelativeLayout
22        android:id="@+id/event_info_loading_msg"
23        android:layout_width="match_parent"
24        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>
39
40    <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
48        <LinearLayout
49            android:layout_width="match_parent"
50            android:layout_height="wrap_content"
51            android:layout_weight="1"
52            android:padding="16dip"
53            android:orientation="vertical"
54            android:animateLayoutChanges="false">
55
56            <!--  Container for the event's headline
57                  Name, Date, Time & Location
58            -->
59            <LinearLayout
60                android:id="@+id/event_info_headline"
61                android:layout_width="match_parent"
62                android:layout_height="wrap_content"
63                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="0dip"
77                        android:layout_height="wrap_content"
78                        android:autoLink="all"
79                        android:textIsSelectable="true"
80                        android:textStyle="bold"
81                        android:textColor="@color/event_info_headline_color"
82                        android:textColorLink="@color/event_info_headline_color"
83                        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">
96                        <ImageButton
97                            android:id="@+id/edit"
98                            android:contentDescription="@string/edit_label"
99                            android:layout_width="48dip"
100                            android:layout_height="48dip"
101                            android:enabled="false"
102                            android:visibility="gone"
103                            android:layout_marginRight="8dip"
104                            android:padding="8dip"
105                            android:scaleType="centerInside"
106                            style="?android:attr/buttonBarButtonStyle"
107                            android:src="@drawable/ic_menu_compose_holo_dark" />
108                        <ImageButton
109                            android:id="@+id/delete"
110                            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"
116                            android:enabled="false"
117                            android:visibility="gone"
118                            style="?android:attr/buttonBarButtonStyle"
119                            android:src="@drawable/ic_menu_trash_holo_dark" />
120                    </LinearLayout>
121                </LinearLayout>
122
123                <!-- WHEN -->
124                <TextView
125                    android:id="@+id/when_datetime"
126                    android:layout_width="wrap_content"
127                    android:layout_height="wrap_content"
128                    android:textSize="18sp"
129                    android:layout_marginTop="2dip"
130                    android:paddingLeft="16dip"
131                    android:paddingRight="16dip"
132                    android:textIsSelectable="true"
133                    android:textColor="@color/event_info_headline_color"
134                    style="?android:attr/textAppearanceLarge" />
135
136                <TextView
137                    android:id="@+id/when_repeat"
138                    android:layout_width="wrap_content"
139                    android:layout_height="wrap_content"
140                    android:textSize="18sp"
141                    android:paddingLeft="16dip"
142                    android:paddingRight="16dip"
143                    android:textColor="@color/event_info_headline_transparent_color"
144                    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"
157                    android:textIsSelectable="true"
158                    android:textColor="@color/event_info_headline_color"
159                    android:textColorLink="@color/event_info_headline_link_color"
160                    style="?android:attr/textAppearanceLarge" />
161            </LinearLayout>
162
163            <!-- Organizer -->
164            <LinearLayout
165                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"
176                    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"
183                    android:layout_width="0px"
184                    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"
190                    android:textIsSelectable="true"
191                    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"
211                    android:layout_height="wrap_content"
212                    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"
225                    android:minHeight="52dip"
226                    android:layout_gravity="center_vertical"
227                    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"
234                        android:layout_gravity="center_vertical"
235                        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"
244                        android:layout_gravity="center_vertical"
245                        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"
254                        android:layout_gravity="center_vertical"
255                        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>
261
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"
280                    android:layout_marginLeft="5dp"
281                    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
296            <!-- 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
328            <!-- 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"
342                android:layout_width="match_parent"
343                android:layout_height="wrap_content"
344                android:focusable="true">
345                <TextView
346                    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"
368                    android:layout_width="match_parent"
369                    android:layout_marginLeft="8dp"
370                    android:layout_marginRight="0dp"
371                    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>
381        </LinearLayout>
382    </ScrollView>
383</FrameLayout>
384