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