event_info_dialog.xml revision 75f53668f94c3ced9d3cc8583d7e45ce725ff9de
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="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:visibility="gone"
101                            android:layout_marginTop="8dip"
102                            android:layout_marginRight="16dip"
103                            style="?android:attr/buttonBarButtonStyle"
104                            android:background="@drawable/event_info_compose_button" />
105                        <Button
106                            android:id="@+id/delete"
107                            android:layout_width="32dip"
108                            android:layout_height="32dip"
109                            android:layout_marginTop="8dip"
110                            android:layout_marginLeft="16dip"
111                            android:layout_weight="1"
112                            android:enabled="false"
113                            android:visibility="gone"
114                            style="?android:attr/buttonBarButtonStyle"
115                            android:background="@drawable/event_info_delete_button" />
116                    </LinearLayout>
117                </LinearLayout>
118
119                <!-- WHEN -->
120                <TextView
121                    android:id="@+id/when_datetime"
122                    android:layout_width="wrap_content"
123                    android:layout_height="wrap_content"
124                    android:textSize="18sp"
125                    android:layout_marginTop="2dip"
126                    android:paddingLeft="16dip"
127                    android:paddingRight="16dip"
128                    android:textColor="@color/event_info_headline_color"
129                    style="?android:attr/textAppearanceLarge" />
130
131                <TextView
132                    android:id="@+id/when_repeat"
133                    android:layout_width="wrap_content"
134                    android:layout_height="wrap_content"
135                    android:textSize="18sp"
136                    android:paddingLeft="16dip"
137                    android:paddingRight="16dip"
138                    android:textColor="@color/event_info_headline_color"
139                    style="?android:attr/textAppearanceLarge" />
140
141                <!-- WHERE -->
142                <TextView
143                    android:id="@+id/where"
144                    android:layout_width="match_parent"
145                    android:layout_height="wrap_content"
146                    android:ellipsize="end"
147                    android:singleLine="false"
148                    android:layout_marginTop="8dip"
149                    android:textSize="18sp"
150                    android:paddingLeft="16dip"
151                    android:paddingRight="16dip"
152                    android:textColor="@color/event_info_headline_color"
153                    android:textColorLink="@color/event_info_headline_link_color"
154                    style="?android:attr/textAppearanceLarge" />
155            </LinearLayout>
156
157            <!-- Organizer -->
158            <LinearLayout
159                android:id="@+id/organizer_container"
160                android:visibility="gone"
161                android:layout_marginTop="10dip"
162                android:orientation="horizontal"
163                android:layout_width="match_parent"
164                android:layout_height="wrap_content">
165                <TextView
166                    android:id="@+id/organizer_label"
167                    android:layout_width="wrap_content"
168                    android:layout_height="wrap_content"
169                    android:paddingLeft="16dip"
170                    android:paddingRight="16dip"
171                    android:singleLine="true"
172                    android:text="@string/event_info_organizer"
173                    android:textColor="@color/event_info_organizer_color"
174                    style="?android:attr/textAppearanceSmall"
175                    android:textSize="18sp"/>
176                <TextView
177                    android:id="@+id/organizer"
178                    android:layout_width="wrap_content"
179                    android:layout_height="wrap_content"
180                    android:ellipsize="end"
181                    android:layout_weight="1"
182                    android:singleLine="true"
183                    android:layout_marginLeft="4dip"
184                    android:layout_marginRight="8dip"
185                    android:textColor="@color/event_info_organizer_color"
186                    style="?android:attr/textAppearanceSmall"
187                    android:textSize="18sp"/>
188            </LinearLayout>
189
190            <!-- DESCRIPTION -->
191            <include
192                android:id="@+id/description"
193                layout="@layout/expandable_textview" />
194
195            <!-- RESPONSE -->
196            <LinearLayout
197                android:id="@+id/response_container"
198                android:visibility="gone"
199                android:orientation="vertical"
200                android:layout_width="match_parent"
201                android:layout_height="wrap_content">
202                <TextView
203                    android:id="@+id/response_label"
204                    android:layout_width="match_parent"
205                    android:layout_height="wrap_content"
206                    android:layout_gravity="center_vertical"
207                    android:paddingLeft="8dip"
208                    android:paddingRight="16dip"
209                    android:layout_marginTop="8dip"
210                    android:layout_marginLeft="8dip"
211                    android:textColor="@color/event_info_label_color"
212                    android:textAppearance="?android:attr/textAppearanceMedium"
213                    style="?android:attr/listSeparatorTextViewStyle"
214                    android:text="@string/view_event_response_label" />
215                <RadioGroup
216                    android:id="@+id/response_value"
217                    android:layout_width="match_parent"
218                    android:layout_height="wrap_content"
219                    android:minHeight="52dip"
220                    android:layout_gravity="center_vertical"
221                    android:paddingLeft="9dip"
222                    android:orientation="horizontal">
223                    <RadioButton
224                        android:id="@+id/response_yes"
225                        android:layout_width="0dip"
226                        android:layout_height="wrap_content"
227                        android:layout_weight="1"
228                        android:layout_gravity="center_vertical"
229                        android:minWidth="96dip"
230                        style="?android:attr/textAppearanceMedium"
231                        android:textColor="@color/event_info_body_color"
232                        android:text="@string/response_yes" />
233                    <RadioButton
234                        android:id="@+id/response_maybe"
235                        android:layout_width="0dip"
236                        android:layout_height="wrap_content"
237                        android:layout_weight="1"
238                        android:layout_gravity="center_vertical"
239                        android:minWidth="96dip"
240                        style="?android:attr/textAppearanceMedium"
241                        android:textColor="@color/event_info_body_color"
242                        android:text="@string/response_maybe" />
243                    <RadioButton
244                        android:id="@+id/response_no"
245                        android:layout_width="0dip"
246                        android:layout_height="wrap_content"
247                        android:layout_weight="1"
248                        android:layout_gravity="center_vertical"
249                        android:minWidth="96dip"
250                        style="?android:attr/textAppearanceMedium"
251                        android:textColor="@color/event_info_body_color"
252                        android:text="@string/response_no" />
253                </RadioGroup>
254            </LinearLayout>
255
256            <!-- EMAIL GUESTS -->
257            <LinearLayout
258                android:id="@+id/email_attendees_container"
259                android:visibility="gone"
260                android:orientation="vertical"
261                android:layout_width="match_parent"
262                android:layout_height="wrap_content">
263                <View
264                    android:background="?android:attr/listDivider"
265                    android:layout_height="1px"
266                    android:layout_width="match_parent"
267                    android:layout_marginLeft="8dip"
268                    android:layout_marginRight="0dip" />
269                <Button
270                    android:id="@+id/email_attendees_button"
271                    android:text="@string/email_guests_label"
272                    android:layout_height="50dp"
273                    android:layout_width="match_parent"
274                    android:layout_marginLeft="8dp"
275                    android:layout_marginRight="0dp"
276                    android:layout_gravity="left"
277                    android:gravity="center_vertical"
278                    android:paddingBottom="0dp"
279                    android:layout_marginTop="0dip"
280                    android:layout_marginBottom="0dip"
281                    android:textAllCaps="false"
282                    android:textSize="16sp"
283                    android:textColor="#777777"
284                    android:background="?android:attr/selectableItemBackground"
285                    android:drawableLeft="@drawable/event_info_mail_button"
286                    android:drawablePadding="8dp"
287                    style="@style/TextAppearance.EditEvent_LabelSmall" />
288            </LinearLayout>
289
290            <!-- GUEST LIST -->
291            <com.android.calendar.event.AttendeesView
292                android:id="@+id/long_attendee_list"
293                android:textColor="@color/event_info_body_color"
294                android:orientation="vertical"
295                android:layout_height="wrap_content"
296                android:layout_width="match_parent"
297                android:visibility="gone"
298                android:layout_marginTop="5dip"/>
299
300            <!-- REMINDERS -->
301            <LinearLayout
302                android:id="@+id/reminders_row"
303                android:orientation="vertical"
304                android:layout_width="match_parent"
305                android:layout_height="wrap_content"
306                android:focusable="true">
307                <TextView
308                    android:layout_width="match_parent"
309                    android:layout_height="wrap_content"
310                    android:layout_gravity="center_vertical"
311                    android:paddingLeft="8dip"
312                    android:paddingRight="16dip"
313                    android:layout_marginTop="4dip"
314                    android:layout_marginLeft="8dip"
315                    android:textColor="@color/event_info_label_color"
316                    android:textAppearance="?android:attr/textAppearanceMedium"
317                    style="?android:attr/listSeparatorTextViewStyle"
318                    android:text="@string/event_info_reminders_label" />
319                <LinearLayout
320                    android:id="@+id/reminder_items_container"
321                    android:layout_width="match_parent"
322                    android:layout_height="wrap_content"
323                    android:layout_marginLeft="-8dp"
324                    android:layout_weight="1"
325                    android:orientation="vertical" />
326                <Button
327                    android:id="@+id/reminder_add"
328                    android:text="@string/reminders_label"
329                    android:layout_height="wrap_content"
330                    android:layout_width="match_parent"
331                    android:layout_marginLeft="8dp"
332                    android:layout_marginRight="0dp"
333                    android:layout_marginBottom="-6dp"
334                    android:gravity="center_vertical|left"
335                    android:textSize="18sp"
336                    android:textColor="#FF777777"
337                    android:minHeight="38dip"
338                    android:background="?android:attr/selectableItemBackground"
339                    android:contentDescription="@string/accessibility_add_reminder"
340                    style="@style/TextAppearance.EditEvent_LabelSmall"
341                    android:textAllCaps="false" />
342            </LinearLayout>
343        </LinearLayout>
344    </ScrollView>
345</FrameLayout>
346