event_info_dialog.xml revision cba7f1fd22e1d7ee9d8d0828f37bc08512bf6b75
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
17<ScrollView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/event_info_scroll_view"
20    android:orientation="vertical"
21    android:layout_width="match_parent"
22    android:background="#fafafa"
23    android:layout_weight="1"
24    android:padding="16dip"
25    android:layout_height="match_parent">
26
27    <LinearLayout
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:layout_weight="1"
31        android:orientation="vertical"
32        android:animateLayoutChanges="false">
33
34        <!--  Container for the event's headline
35              Name, Date, Time & Location
36        -->
37        <LinearLayout
38            android:id="@+id/event_info_headline"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:paddingTop="12dip"
42            android:paddingBottom="16dip"
43            android:layout_weight="1"
44            android:orientation="vertical">
45
46            <LinearLayout
47                android:layout_width="match_parent"
48                android:layout_height="wrap_content"
49                android:orientation="horizontal">
50                <!-- WHAT -->
51                <TextView
52                    android:id="@+id/title"
53                    android:layout_weight=".8"
54                    android:layout_width="wrap_content"
55                    android:layout_height="wrap_content"
56                    android:autoLink="all"
57                    android:textStyle="bold"
58                    android:textColor="@color/event_info_headline_color"
59                    android:paddingLeft="16dip"
60                    android:paddingRight="16dip"
61                    style="?android:attr/textAppearanceLarge"
62                    android:textSize="30sp" />
63                <!-- BUTTONS -->
64                <LinearLayout
65                    android:id="@+id/event_info_buttons_container"
66                    android:orientation="horizontal"
67                    android:layout_width="wrap_content"
68                    android:layout_height="wrap_content"
69                    android:layout_marginLeft="16dip"
70                    android:layout_marginRight="16dip"
71                    android:layout_gravity="right">
72                    <Button
73                        android:id="@+id/edit"
74                        android:layout_width="32dip"
75                        android:layout_height="32dip"
76                        android:layout_weight="1"
77                        android:enabled="false"
78                        android:layout_marginTop="8dip"
79                        android:layout_marginRight="16dip"
80                        style="?android:attr/buttonBarButtonStyle"
81                        android:background="@drawable/ic_menu_compose_holo_dark" />
82                    <Button
83                        android:id="@+id/delete"
84                        android:layout_width="32dip"
85                        android:layout_height="32dip"
86                        android:layout_marginTop="8dip"
87                        android:layout_marginLeft="16dip"
88                        android:layout_weight="1"
89                        style="?android:attr/buttonBarButtonStyle"
90                        android:background="@drawable/ic_menu_trash_holo_dark" />
91                </LinearLayout>
92            </LinearLayout>
93
94            <!-- WHEN -->
95            <TextView
96                android:id="@+id/when_date"
97                android:layout_width="wrap_content"
98                android:layout_height="wrap_content"
99                android:textSize="18sp"
100                android:layout_marginTop="2dip"
101                android:paddingLeft="16dip"
102                android:paddingRight="16dip"
103                android:textColor="@color/event_info_headline_color"
104                style="?android:attr/textAppearanceLarge" />
105
106            <TextView
107                android:id="@+id/when_time"
108                android:layout_width="wrap_content"
109                android:layout_height="wrap_content"
110                android:textSize="18sp"
111                android:paddingLeft="16dip"
112                android:paddingRight="16dip"
113                android:textColor="@color/event_info_headline_color"
114                style="?android:attr/textAppearanceLarge" />
115
116            <!-- WHERE -->
117            <TextView
118                android:id="@+id/where"
119                android:layout_width="match_parent"
120                android:layout_height="wrap_content"
121                android:ellipsize="end"
122                android:singleLine="false"
123                android:layout_marginTop="8dip"
124                android:textSize="18sp"
125                android:paddingLeft="16dip"
126                android:paddingRight="16dip"
127                android:textColor="@color/event_info_headline_color"
128                android:textColorLink="@color/event_info_headline_link_color"
129                style="?android:attr/textAppearanceLarge" />
130        </LinearLayout>
131
132        <!-- Organizer -->
133        <LinearLayout
134            android:id="@+id/organizer_container"
135            android:visibility="gone"
136            android:layout_marginTop="10dip"
137            android:orientation="horizontal"
138            android:layout_width="match_parent"
139            android:layout_height="wrap_content">
140            <TextView
141                android:id="@+id/organizer_label"
142                android:layout_width="wrap_content"
143                android:layout_height="wrap_content"
144                android:paddingLeft="16dip"
145                android:paddingRight="16dip"
146                android:singleLine="true"
147                android:text="@string/event_info_organizer"
148                android:textColor="@color/event_info_organizer_color"
149                style="?android:attr/textAppearanceSmall"
150                android:textSize="18sp"/>
151            <TextView
152                android:id="@+id/organizer"
153                android:layout_width="wrap_content"
154                android:layout_height="wrap_content"
155                android:ellipsize="end"
156                android:layout_weight="1"
157                android:singleLine="true"
158                android:layout_marginLeft="4dip"
159                android:layout_marginRight="8dip"
160                android:textColor="@color/event_info_organizer_color"
161                style="?android:attr/textAppearanceSmall"
162                android:textSize="18sp"/>
163        </LinearLayout>
164
165        <!-- DESCRIPTION -->
166        <TextView
167            android:id="@+id/description"
168            android:layout_width="match_parent"
169            android:layout_height="0dip"
170            android:layout_weight="1"
171            android:paddingLeft="16dip"
172            android:paddingRight="16dip"
173            android:layout_marginTop="16dip"
174            android:autoLink="all"
175            android:ellipsize="end"
176            android:maxLines="@integer/event_info_desc_line_num"
177            android:textSize="18sp"
178            android:textColor="@color/event_info_description_color"
179            style="?android:attr/textAppearanceSmall"
180            android:visibility="gone" />
181        <Button
182            android:id="@+id/desc_expand"
183            android:layout_width="wrap_content"
184            android:layout_height="wrap_content"
185            android:layout_gravity="right"
186            android:layout_marginTop="8dip"
187            android:layout_marginRight="16dip"
188            android:textColor="@color/event_info_description_color"
189            android:background="#00000000"
190            style="?android:attr/textAppearanceSmall" />
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="16dip"
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"
264            android:layout_width="match_parent"
265            android:layout_height="wrap_content"
266            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="0dp"
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="@null"
299                android:contentDescription="@string/accessibility_add_reminder"
300                style="@style/TextAppearance.EditEvent_LabelSmall"
301                android:textAllCaps="false" />
302        </LinearLayout>
303    </LinearLayout>
304</ScrollView>
305