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 <include layout="@layout/event_info_headline" /> 58 59 <LinearLayout 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:paddingLeft="16dip" 63 android:paddingRight="16dip" 64 android:layout_marginTop="8dip" 65 android:orientation="vertical"> 66 <!-- Calendar Owner --> 67 <LinearLayout 68 android:id="@+id/calendar_container" 69 android:visibility="gone" 70 android:paddingRight="16dip" 71 android:orientation="horizontal" 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content"> 74 <TextView 75 android:id="@+id/calendar_label" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:singleLine="true" 79 android:text="@string/view_event_calendar_label" 80 android:textColor="@color/event_info_organizer_color" 81 style="?android:attr/textAppearanceSmall" 82 android:textSize="14sp"/> 83 <TextView 84 android:id="@+id/calendar_name" 85 android:layout_width="0px" 86 android:layout_height="wrap_content" 87 android:ellipsize="end" 88 android:layout_weight="1" 89 android:singleLine="true" 90 android:layout_marginLeft="2dip" 91 android:textIsSelectable="true" 92 android:textColor="@color/event_info_organizer_color" 93 style="?android:attr/textAppearanceSmall" 94 android:textSize="14sp"/> 95 </LinearLayout> 96 97 <!-- Organizer --> 98 <LinearLayout 99 android:id="@+id/organizer_container" 100 android:visibility="gone" 101 android:paddingRight="16dip" 102 android:orientation="horizontal" 103 android:layout_width="match_parent" 104 android:layout_height="wrap_content"> 105 <TextView 106 android:id="@+id/organizer_label" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:singleLine="true" 110 android:text="@string/event_info_organizer" 111 android:textColor="@color/event_info_organizer_color" 112 style="?android:attr/textAppearanceSmall" 113 android:textSize="14sp"/> 114 <TextView 115 android:id="@+id/organizer" 116 android:layout_width="0px" 117 android:layout_height="wrap_content" 118 android:ellipsize="end" 119 android:layout_weight="1" 120 android:singleLine="true" 121 android:layout_marginLeft="2dip" 122 android:textIsSelectable="true" 123 android:textColor="@color/event_info_organizer_color" 124 style="?android:attr/textAppearanceSmall" 125 android:textSize="14sp"/> 126 </LinearLayout> 127 128 <!-- DESCRIPTION --> 129 <include 130 android:id="@+id/description" 131 layout="@layout/expandable_textview" /> 132 133 </LinearLayout> 134 135 <!-- RESPONSE --> 136 <LinearLayout 137 android:id="@+id/response_container" 138 android:visibility="gone" 139 android:orientation="vertical" 140 android:layout_width="match_parent" 141 android:layout_height="wrap_content"> 142 <TextView 143 android:id="@+id/response_label" 144 android:layout_width="match_parent" 145 android:layout_height="wrap_content" 146 android:layout_gravity="center_vertical" 147 android:paddingLeft="8dip" 148 android:paddingRight="8dip" 149 android:layout_marginLeft="8dip" 150 android:layout_marginRight="8dip" 151 android:textColor="@color/event_info_label_color" 152 android:textAppearance="?android:attr/textAppearanceMedium" 153 style="?android:attr/listSeparatorTextViewStyle" 154 android:text="@string/view_event_response_label" /> 155 <RadioGroup 156 android:id="@+id/response_value" 157 android:layout_width="match_parent" 158 android:layout_height="wrap_content" 159 android:minHeight="52dip" 160 android:layout_gravity="center_vertical" 161 android:paddingLeft="8dip" 162 android:paddingRight="8dip" 163 android:orientation="horizontal"> 164 <RadioButton 165 android:id="@+id/response_yes" 166 android:layout_width="wrap_content" 167 android:layout_height="wrap_content" 168 android:layout_weight="1" 169 android:layout_gravity="center_vertical" 170 android:gravity="center_vertical" 171 style="?android:attr/textAppearanceMedium" 172 android:textColor="@color/event_info_body_color" 173 android:text="@string/response_yes" /> 174 <RadioButton 175 android:id="@+id/response_maybe" 176 android:layout_width="wrap_content" 177 android:layout_height="wrap_content" 178 android:layout_weight="1" 179 android:layout_gravity="center_vertical" 180 android:gravity="center_vertical" 181 style="?android:attr/textAppearanceMedium" 182 android:textColor="@color/event_info_body_color" 183 android:text="@string/response_maybe" /> 184 <RadioButton 185 android:id="@+id/response_no" 186 android:layout_width="wrap_content" 187 android:layout_height="wrap_content" 188 android:layout_weight="1" 189 android:layout_gravity="center_vertical" 190 android:gravity="center_vertical" 191 style="?android:attr/textAppearanceMedium" 192 android:textColor="@color/event_info_body_color" 193 android:text="@string/response_no" /> 194 </RadioGroup> 195 </LinearLayout> 196 197 <!-- EMAIL GUESTS --> 198 <LinearLayout 199 android:id="@+id/email_attendees_container" 200 android:visibility="gone" 201 android:orientation="vertical" 202 android:layout_width="match_parent" 203 android:layout_height="wrap_content"> 204 <View 205 android:background="?android:attr/listDivider" 206 android:layout_height="1px" 207 android:layout_width="match_parent" 208 android:layout_marginLeft="8dip" 209 android:layout_marginRight="8dip" /> 210 <Button 211 android:id="@+id/email_attendees_button" 212 android:text="@string/email_guests_label" 213 android:layout_height="50dp" 214 android:layout_width="match_parent" 215 android:layout_marginLeft="6dp" 216 android:layout_marginRight="8dp" 217 android:gravity="center_vertical" 218 android:paddingBottom="0dp" 219 android:layout_marginTop="0dip" 220 android:layout_marginBottom="0dip" 221 android:textAllCaps="false" 222 android:textSize="16sp" 223 android:textColor="#777777" 224 android:background="?android:attr/selectableItemBackground" 225 android:drawableLeft="@drawable/event_info_mail_button" 226 android:drawablePadding="8dp" 227 style="@style/TextAppearance.EditEvent_LabelSmall" /> 228 </LinearLayout> 229 230 <!-- LAUNCH CUSTOM APP --> 231 <LinearLayout 232 android:id="@+id/launch_custom_app_container" 233 android:visibility="gone" 234 android:orientation="vertical" 235 android:layout_width="match_parent" 236 android:layout_height="wrap_content"> 237 <View 238 android:background="?android:attr/listDivider" 239 android:layout_height="1px" 240 android:layout_width="match_parent" 241 android:layout_marginLeft="8dip" 242 android:layout_marginRight="8dip" /> 243 <Button 244 android:id="@+id/launch_custom_app_button" 245 android:layout_height="50dp" 246 android:layout_width="match_parent" 247 android:layout_marginLeft="6dp" 248 android:layout_marginRight="8dp" 249 android:gravity="center_vertical" 250 android:paddingBottom="0dp" 251 android:layout_marginTop="0dip" 252 android:layout_marginBottom="0dip" 253 android:textAllCaps="false" 254 android:textSize="16sp" 255 android:textColor="#777777" 256 android:background="?android:attr/selectableItemBackground" 257 android:drawablePadding="8dp" 258 style="@style/TextAppearance.EditEvent_LabelSmall" /> 259 </LinearLayout> 260 261 <!-- GUEST LIST --> 262 <com.android.calendar.event.AttendeesView 263 android:id="@+id/long_attendee_list" 264 android:textColor="@color/event_info_body_color" 265 android:orientation="vertical" 266 android:layout_height="wrap_content" 267 android:layout_width="match_parent" 268 android:visibility="gone" /> 269 270 <!-- REMINDERS --> 271 <TextView 272 android:layout_width="match_parent" 273 android:layout_height="wrap_content" 274 android:layout_gravity="center_vertical" 275 android:gravity="center_vertical" 276 android:paddingLeft="8dip" 277 android:paddingRight="8dip" 278 android:layout_marginLeft="8dip" 279 android:layout_marginRight="8dip" 280 android:layout_marginTop="4dip" 281 android:layout_marginBottom="0dip" 282 android:textAppearance="?android:attr/textAppearanceMedium" 283 style="?android:attr/listSeparatorTextViewStyle" 284 android:textColor="@color/event_info_label_color" 285 android:text="@string/event_info_reminders_label" /> 286 <LinearLayout 287 android:id="@+id/reminder_items_container" 288 android:layout_width="match_parent" 289 android:layout_height="wrap_content" 290 android:layout_marginBottom="4dip" 291 android:layout_marginLeft="-8dip" 292 android:layout_marginRight="8dip" 293 android:orientation="vertical" /> 294 <Button 295 android:id="@+id/reminder_add" 296 android:text="@string/reminders_label" 297 android:layout_height="wrap_content" 298 android:layout_width="match_parent" 299 android:layout_marginLeft="8dp" 300 android:layout_marginRight="8dp" 301 android:layout_gravity="center_vertical" 302 android:gravity="top" 303 android:paddingBottom="12dp" 304 android:layout_marginTop="0dip" 305 android:layout_marginBottom="0dip" 306 android:textAllCaps="false" 307 android:textSize="18sp" 308 android:textColor="#FF777777" 309 android:minHeight="20dip" 310 android:background="?android:attr/selectableItemBackground" 311 android:contentDescription="@string/accessibility_add_reminder" 312 style="@style/TextAppearance.EditEvent_LabelSmall" /> 313 </LinearLayout> 314 </ScrollView> 315 </FrameLayout> 316