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 <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:fadingEdge="none" 46 android:animateLayoutChanges="true" 47 android:layout_height="match_parent"> 48 49 <LinearLayout 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:orientation="vertical"> 53 54 <!-- Container for the event's headline 55 Name, Date, Time & Location 56 --> 57 <LinearLayout 58 android:id="@+id/event_info_headline" 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:paddingLeft="16dip" 62 android:paddingRight="16dip" 63 android:paddingTop="8dip" 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:textColorLink="@color/event_info_headline_color" 82 style="?android:attr/textAppearanceLarge" 83 android:textSize="24sp" /> 84 <!-- BUTTONS --> 85 <LinearLayout 86 android:id="@+id/event_info_buttons_container" 87 android:orientation="horizontal" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:layout_gravity="right"> 91 <Button 92 android:id="@+id/edit" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:layout_weight="1" 96 android:enabled="false" 97 style="?android:attr/buttonBarButtonStyle" 98 android:textColor="@color/event_info_headline_color" 99 android:text="@string/edit_event_label" /> 100 <Button 101 android:id="@+id/delete" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:layout_weight="1" 105 style="?android:attr/buttonBarButtonStyle" 106 android:textColor="@color/event_info_headline_color" 107 android:text="@string/delete_label" /> 108 </LinearLayout> 109 </LinearLayout> 110 111 <!-- WHEN --> 112 <TextView 113 android:id="@+id/when_datetime" 114 android:layout_width="wrap_content" 115 android:layout_height="wrap_content" 116 android:layout_marginTop="4dip" 117 android:textSize="14sp" 118 android:textColor="@color/event_info_headline_color" 119 style="?android:attr/textAppearanceLarge" /> 120 121 <TextView 122 android:id="@+id/when_repeat" 123 android:layout_width="wrap_content" 124 android:layout_height="wrap_content" 125 android:layout_marginTop="-3dip" 126 android:textSize="14sp" 127 android:textColor="@color/event_info_headline_transparent_color" 128 style="?android:attr/textAppearanceLarge" /> 129 130 <!-- WHERE --> 131 <TextView 132 android:id="@+id/where" 133 android:layout_width="match_parent" 134 android:layout_height="wrap_content" 135 android:ellipsize="end" 136 android:singleLine="false" 137 android:layout_marginTop="4dip" 138 android:textSize="14sp" 139 android:textColor="@color/event_info_headline_color" 140 android:textColorLink="@color/event_info_headline_link_color" 141 style="?android:attr/textAppearanceLarge" /> 142 </LinearLayout> 143 144 <LinearLayout 145 android:layout_width="match_parent" 146 android:layout_height="wrap_content" 147 android:paddingLeft="16dip" 148 android:paddingRight="16dip" 149 android:orientation="vertical"> 150 <!-- Organizer --> 151 <LinearLayout 152 android:id="@+id/organizer_container" 153 android:visibility="gone" 154 android:layout_marginTop="8dip" 155 android:paddingRight="16dip" 156 android:orientation="horizontal" 157 android:layout_width="match_parent" 158 android:layout_height="wrap_content"> 159 <TextView 160 android:id="@+id/organizer_label" 161 android:layout_width="wrap_content" 162 android:layout_height="wrap_content" 163 android:singleLine="true" 164 android:text="@string/event_info_organizer" 165 android:textColor="@color/event_info_organizer_color" 166 style="?android:attr/textAppearanceSmall" 167 android:textSize="14sp"/> 168 <TextView 169 android:id="@+id/organizer" 170 android:layout_width="0px" 171 android:layout_height="wrap_content" 172 android:ellipsize="end" 173 android:layout_weight="1" 174 android:singleLine="true" 175 android:layout_marginLeft="2dip" 176 android:textColor="@color/event_info_organizer_color" 177 style="?android:attr/textAppearanceSmall" 178 android:textSize="14sp"/> 179 </LinearLayout> 180 181 <!-- DESCRIPTION --> 182 <include 183 android:id="@+id/description" 184 layout="@layout/expandable_textview" /> 185 186 </LinearLayout> 187 188 <!-- RESPONSE --> 189 <LinearLayout 190 android:id="@+id/response_container" 191 android:visibility="gone" 192 android:orientation="vertical" 193 android:layout_width="match_parent" 194 android:layout_height="wrap_content"> 195 <TextView 196 android:id="@+id/response_label" 197 android:layout_width="match_parent" 198 android:layout_height="wrap_content" 199 android:layout_gravity="center_vertical" 200 android:paddingLeft="8dip" 201 android:paddingRight="8dip" 202 android:layout_marginLeft="8dip" 203 android:layout_marginRight="8dip" 204 android:textColor="@color/event_info_label_color" 205 android:textAppearance="?android:attr/textAppearanceMedium" 206 style="?android:attr/listSeparatorTextViewStyle" 207 android:text="@string/view_event_response_label" /> 208 <RadioGroup 209 android:id="@+id/response_value" 210 android:layout_width="match_parent" 211 android:layout_height="wrap_content" 212 android:minHeight="52dip" 213 android:layout_gravity="center_vertical" 214 android:paddingLeft="8dip" 215 android:paddingRight="8dip" 216 android:orientation="horizontal"> 217 <RadioButton 218 android:id="@+id/response_yes" 219 android:layout_width="wrap_content" 220 android:layout_height="wrap_content" 221 android:layout_weight="1" 222 android:layout_gravity="center_vertical" 223 android:paddingLeft="29dip" 224 android:gravity="center_vertical" 225 style="?android:attr/textAppearanceMedium" 226 android:textColor="@color/event_info_body_color" 227 android:text="@string/response_yes" /> 228 <RadioButton 229 android:id="@+id/response_maybe" 230 android:layout_width="wrap_content" 231 android:layout_height="wrap_content" 232 android:layout_weight="1" 233 android:layout_gravity="center_vertical" 234 android:paddingLeft="29dip" 235 android:gravity="center_vertical" 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="wrap_content" 242 android:layout_height="wrap_content" 243 android:layout_weight="1" 244 android:layout_gravity="center_vertical" 245 android:paddingLeft="29dip" 246 android:gravity="center_vertical" 247 style="?android:attr/textAppearanceMedium" 248 android:textColor="@color/event_info_body_color" 249 android:text="@string/response_no" /> 250 </RadioGroup> 251 </LinearLayout> 252 253 <!-- EMAIL GUESTS --> 254 <LinearLayout 255 android:id="@+id/email_attendees_container" 256 android:visibility="gone" 257 android:orientation="vertical" 258 android:layout_width="match_parent" 259 android:layout_height="wrap_content"> 260 <View 261 android:background="?android:attr/listDivider" 262 android:layout_height="1px" 263 android:layout_width="match_parent" 264 android:layout_marginLeft="8dip" 265 android:layout_marginRight="8dip" /> 266 <Button 267 android:id="@+id/email_attendees_button" 268 android:text="@string/email_guests_label" 269 android:layout_height="50dp" 270 android:layout_width="match_parent" 271 android:layout_marginLeft="6dp" 272 android:layout_marginRight="8dp" 273 android:gravity="center_vertical" 274 android:paddingBottom="0dp" 275 android:layout_marginTop="0dip" 276 android:layout_marginBottom="0dip" 277 android:textAllCaps="false" 278 android:textSize="16sp" 279 android:textColor="#777777" 280 android:background="?android:attr/selectableItemBackground" 281 android:drawableLeft="@drawable/event_info_mail_button" 282 android:drawablePadding="8dp" 283 style="@style/TextAppearance.EditEvent_LabelSmall" /> 284 </LinearLayout> 285 286 <!-- LAUNCH CUSTOM APP --> 287 <LinearLayout 288 android:id="@+id/launch_custom_app_container" 289 android:visibility="gone" 290 android:orientation="vertical" 291 android:layout_width="match_parent" 292 android:layout_height="wrap_content"> 293 <View 294 android:background="?android:attr/listDivider" 295 android:layout_height="1px" 296 android:layout_width="match_parent" 297 android:layout_marginLeft="8dip" 298 android:layout_marginRight="8dip" /> 299 <Button 300 android:id="@+id/launch_custom_app_button" 301 android:layout_height="50dp" 302 android:layout_width="match_parent" 303 android:layout_marginLeft="6dp" 304 android:layout_marginRight="8dp" 305 android:gravity="center_vertical" 306 android:paddingBottom="0dp" 307 android:layout_marginTop="0dip" 308 android:layout_marginBottom="0dip" 309 android:textAllCaps="false" 310 android:textSize="16sp" 311 android:textColor="#777777" 312 android:background="?android:attr/selectableItemBackground" 313 android:drawablePadding="8dp" 314 style="@style/TextAppearance.EditEvent_LabelSmall" /> 315 </LinearLayout> 316 317 <!-- GUEST LIST --> 318 <com.android.calendar.event.AttendeesView 319 android:id="@+id/long_attendee_list" 320 android:textColor="@color/event_info_body_color" 321 android:orientation="vertical" 322 android:layout_height="wrap_content" 323 android:layout_width="match_parent" 324 android:visibility="gone" /> 325 326 <!-- REMINDERS --> 327 <TextView 328 android:layout_width="match_parent" 329 android:layout_height="wrap_content" 330 android:layout_gravity="center_vertical" 331 android:gravity="center_vertical" 332 android:paddingLeft="8dip" 333 android:paddingRight="8dip" 334 android:layout_marginLeft="8dip" 335 android:layout_marginRight="8dip" 336 android:layout_marginTop="4dip" 337 android:layout_marginBottom="0dip" 338 android:textAppearance="?android:attr/textAppearanceMedium" 339 style="?android:attr/listSeparatorTextViewStyle" 340 android:textColor="@color/event_info_label_color" 341 android:text="@string/event_info_reminders_label" /> 342 <LinearLayout 343 android:id="@+id/reminder_items_container" 344 android:layout_width="match_parent" 345 android:layout_height="wrap_content" 346 android:layout_marginBottom="4dip" 347 android:layout_marginLeft="-8dip" 348 android:layout_marginRight="8dip" 349 android:orientation="vertical" /> 350 <Button 351 android:id="@+id/reminder_add" 352 android:text="@string/reminders_label" 353 android:layout_height="wrap_content" 354 android:layout_width="match_parent" 355 android:layout_marginLeft="8dp" 356 android:layout_marginRight="8dp" 357 android:layout_gravity="center_vertical" 358 android:gravity="top" 359 android:paddingBottom="12dp" 360 android:layout_marginTop="0dip" 361 android:layout_marginBottom="0dip" 362 android:textAllCaps="false" 363 android:textSize="18sp" 364 android:textColor="#FF777777" 365 android:minHeight="20dip" 366 android:background="?android:attr/selectableItemBackground" 367 android:contentDescription="@string/accessibility_add_reminder" 368 style="@style/TextAppearance.EditEvent_LabelSmall" /> 369 </LinearLayout> 370 </ScrollView> 371 </FrameLayout> 372