Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame] | 2 | <!-- Copyright (C) 2006 The Android Open Source Project |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 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 | --> |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 16 | <FrameLayout |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Isaac Katzenelson | fae6d5c | 2011-06-16 15:43:41 -0700 | [diff] [blame] | 18 | android:background="#fafafa" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 19 | android:layout_width="match_parent" |
Isaac Katzenelson | fae6d5c | 2011-06-16 15:43:41 -0700 | [diff] [blame] | 20 | android:layout_height="match_parent"> |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 21 | <RelativeLayout |
| 22 | android:id="@+id/event_info_loading_msg" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 23 | android:layout_width="match_parent" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 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> |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 39 | |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 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 | |
Isaac Katzenelson | fae6d5c | 2011-06-16 15:43:41 -0700 | [diff] [blame] | 48 | <LinearLayout |
Isaac Katzenelson | fae6d5c | 2011-06-16 15:43:41 -0700 | [diff] [blame] | 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="wrap_content" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 51 | android:layout_weight="1" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 52 | android:padding="16dip" |
| 53 | android:orientation="vertical" |
| 54 | android:animateLayoutChanges="false"> |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 55 | |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 56 | <!-- Container for the event's headline |
| 57 | Name, Date, Time & Location |
| 58 | --> |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 59 | <LinearLayout |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 60 | android:id="@+id/event_info_headline" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 61 | android:layout_width="match_parent" |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame] | 62 | android:layout_height="wrap_content" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 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" |
Sara Ting | 42896f7 | 2012-03-15 15:24:36 -0700 | [diff] [blame] | 100 | android:visibility="gone" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 101 | android:layout_marginTop="8dip" |
| 102 | android:layout_marginRight="16dip" |
| 103 | style="?android:attr/buttonBarButtonStyle" |
Isaac Katzenelson | 18ad813 | 2012-03-02 14:52:31 -0800 | [diff] [blame] | 104 | android:background="@drawable/event_info_compose_button" /> |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 105 | <Button |
Sara Ting | 42896f7 | 2012-03-15 15:24:36 -0700 | [diff] [blame] | 106 | android:id="@+id/mail" |
| 107 | android:layout_width="32dip" |
| 108 | android:layout_height="32dip" |
| 109 | android:layout_weight="1" |
| 110 | android:layout_marginTop="8dip" |
| 111 | android:layout_marginRight="16dip" |
| 112 | android:enabled="false" |
| 113 | android:visibility="gone" |
| 114 | style="?android:attr/buttonBarButtonStyle" |
| 115 | android:background="@drawable/event_info_mail_button" /> |
| 116 | <Button |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 117 | android:id="@+id/delete" |
| 118 | android:layout_width="32dip" |
| 119 | android:layout_height="32dip" |
| 120 | android:layout_marginTop="8dip" |
| 121 | android:layout_marginLeft="16dip" |
| 122 | android:layout_weight="1" |
Sara Ting | 42896f7 | 2012-03-15 15:24:36 -0700 | [diff] [blame] | 123 | android:enabled="false" |
| 124 | android:visibility="gone" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 125 | style="?android:attr/buttonBarButtonStyle" |
Isaac Katzenelson | 18ad813 | 2012-03-02 14:52:31 -0800 | [diff] [blame] | 126 | android:background="@drawable/event_info_delete_button" /> |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 127 | </LinearLayout> |
| 128 | </LinearLayout> |
| 129 | |
| 130 | <!-- WHEN --> |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame] | 131 | <TextView |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 132 | android:id="@+id/when_date" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 133 | android:layout_width="wrap_content" |
| 134 | android:layout_height="wrap_content" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 135 | android:textSize="18sp" |
| 136 | android:layout_marginTop="2dip" |
Isaac Katzenelson | 10b6021 | 2011-06-28 17:59:14 -0700 | [diff] [blame] | 137 | android:paddingLeft="16dip" |
RoboErik | 763b930 | 2011-08-02 16:27:48 -0700 | [diff] [blame] | 138 | android:paddingRight="16dip" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 139 | android:textColor="@color/event_info_headline_color" |
| 140 | style="?android:attr/textAppearanceLarge" /> |
| 141 | |
| 142 | <TextView |
| 143 | android:id="@+id/when_time" |
Isaac Katzenelson | fae6d5c | 2011-06-16 15:43:41 -0700 | [diff] [blame] | 144 | android:layout_width="wrap_content" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 145 | android:layout_height="wrap_content" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 146 | android:textSize="18sp" |
| 147 | android:paddingLeft="16dip" |
| 148 | android:paddingRight="16dip" |
| 149 | android:textColor="@color/event_info_headline_color" |
| 150 | style="?android:attr/textAppearanceLarge" /> |
| 151 | |
| 152 | <!-- WHERE --> |
| 153 | <TextView |
| 154 | android:id="@+id/where" |
| 155 | android:layout_width="match_parent" |
| 156 | android:layout_height="wrap_content" |
| 157 | android:ellipsize="end" |
| 158 | android:singleLine="false" |
| 159 | android:layout_marginTop="8dip" |
| 160 | android:textSize="18sp" |
| 161 | android:paddingLeft="16dip" |
| 162 | android:paddingRight="16dip" |
| 163 | android:textColor="@color/event_info_headline_color" |
| 164 | android:textColorLink="@color/event_info_headline_link_color" |
| 165 | style="?android:attr/textAppearanceLarge" /> |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 166 | </LinearLayout> |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 167 | |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 168 | <!-- Organizer --> |
RoboErik | d4208ce | 2011-10-10 18:17:44 -0700 | [diff] [blame] | 169 | <LinearLayout |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 170 | android:id="@+id/organizer_container" |
| 171 | android:visibility="gone" |
| 172 | android:layout_marginTop="10dip" |
| 173 | android:orientation="horizontal" |
| 174 | android:layout_width="match_parent" |
| 175 | android:layout_height="wrap_content"> |
| 176 | <TextView |
| 177 | android:id="@+id/organizer_label" |
| 178 | android:layout_width="wrap_content" |
| 179 | android:layout_height="wrap_content" |
| 180 | android:paddingLeft="16dip" |
| 181 | android:paddingRight="16dip" |
| 182 | android:singleLine="true" |
| 183 | android:text="@string/event_info_organizer" |
| 184 | android:textColor="@color/event_info_organizer_color" |
| 185 | style="?android:attr/textAppearanceSmall" |
| 186 | android:textSize="18sp"/> |
| 187 | <TextView |
| 188 | android:id="@+id/organizer" |
| 189 | android:layout_width="wrap_content" |
| 190 | android:layout_height="wrap_content" |
| 191 | android:ellipsize="end" |
| 192 | android:layout_weight="1" |
| 193 | android:singleLine="true" |
| 194 | android:layout_marginLeft="4dip" |
| 195 | android:layout_marginRight="8dip" |
| 196 | android:textColor="@color/event_info_organizer_color" |
| 197 | style="?android:attr/textAppearanceSmall" |
| 198 | android:textSize="18sp"/> |
| 199 | </LinearLayout> |
| 200 | |
| 201 | <!-- DESCRIPTION --> |
| 202 | <include |
| 203 | android:id="@+id/description" |
| 204 | layout="@layout/expandable_textview" /> |
| 205 | |
| 206 | <!-- RESPONSE --> |
| 207 | <LinearLayout |
| 208 | android:id="@+id/response_container" |
| 209 | android:visibility="gone" |
| 210 | android:orientation="vertical" |
| 211 | android:layout_width="match_parent" |
| 212 | android:layout_height="wrap_content"> |
| 213 | <TextView |
| 214 | android:id="@+id/response_label" |
| 215 | android:layout_width="match_parent" |
| 216 | android:layout_height="32dip" |
| 217 | android:layout_gravity="center_vertical" |
| 218 | android:paddingLeft="8dip" |
| 219 | android:paddingRight="16dip" |
| 220 | android:layout_marginTop="8dip" |
| 221 | android:layout_marginLeft="8dip" |
| 222 | android:textColor="@color/event_info_label_color" |
| 223 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 224 | style="?android:attr/listSeparatorTextViewStyle" |
| 225 | android:text="@string/view_event_response_label" /> |
| 226 | <RadioGroup |
| 227 | android:id="@+id/response_value" |
| 228 | android:layout_width="match_parent" |
| 229 | android:layout_height="wrap_content" |
| 230 | android:layout_gravity="center_vertical" |
| 231 | android:layout_marginTop="8dip" |
| 232 | android:layout_marginBottom="8dip" |
| 233 | android:paddingLeft="9dip" |
| 234 | android:orientation="horizontal"> |
| 235 | <RadioButton |
| 236 | android:id="@+id/response_yes" |
| 237 | android:layout_width="0dip" |
| 238 | android:layout_height="wrap_content" |
| 239 | android:layout_weight="1" |
| 240 | android:minWidth="96dip" |
| 241 | style="?android:attr/textAppearanceMedium" |
| 242 | android:textColor="@color/event_info_body_color" |
| 243 | android:text="@string/response_yes" /> |
| 244 | <RadioButton |
| 245 | android:id="@+id/response_maybe" |
| 246 | android:layout_width="0dip" |
| 247 | android:layout_height="wrap_content" |
| 248 | android:layout_weight="1" |
| 249 | android:minWidth="96dip" |
| 250 | style="?android:attr/textAppearanceMedium" |
| 251 | android:textColor="@color/event_info_body_color" |
| 252 | android:text="@string/response_maybe" /> |
| 253 | <RadioButton |
| 254 | android:id="@+id/response_no" |
| 255 | android:layout_width="0dip" |
| 256 | android:layout_height="wrap_content" |
| 257 | android:layout_weight="1" |
| 258 | android:minWidth="96dip" |
| 259 | style="?android:attr/textAppearanceMedium" |
| 260 | android:textColor="@color/event_info_body_color" |
| 261 | android:text="@string/response_no" /> |
| 262 | </RadioGroup> |
| 263 | </LinearLayout> |
| 264 | <!-- GUEST LIST --> |
| 265 | <com.android.calendar.event.AttendeesView |
| 266 | android:id="@+id/long_attendee_list" |
| 267 | android:textColor="@color/event_info_body_color" |
| 268 | android:orientation="vertical" |
| 269 | android:layout_height="wrap_content" |
| 270 | android:layout_width="match_parent" |
| 271 | android:visibility="gone" |
| 272 | android:layout_marginTop="5dip"/> |
| 273 | |
| 274 | <!-- REMINDERS --> |
| 275 | <LinearLayout |
| 276 | android:id="@+id/reminders_row" |
| 277 | android:orientation="vertical" |
RoboErik | d4208ce | 2011-10-10 18:17:44 -0700 | [diff] [blame] | 278 | android:layout_width="match_parent" |
| 279 | android:layout_height="wrap_content" |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 280 | android:focusable="true"> |
| 281 | <TextView |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 282 | android:layout_width="match_parent" |
| 283 | android:layout_height="wrap_content" |
| 284 | android:layout_gravity="center_vertical" |
| 285 | android:paddingLeft="8dip" |
| 286 | android:paddingRight="16dip" |
| 287 | android:layout_marginTop="4dip" |
| 288 | android:layout_marginLeft="8dip" |
| 289 | android:textColor="@color/event_info_label_color" |
| 290 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 291 | style="?android:attr/listSeparatorTextViewStyle" |
| 292 | android:text="@string/event_info_reminders_label" /> |
| 293 | <LinearLayout |
| 294 | android:id="@+id/reminder_items_container" |
| 295 | android:layout_width="match_parent" |
| 296 | android:layout_height="wrap_content" |
| 297 | android:layout_marginLeft="-8dp" |
| 298 | android:layout_weight="1" |
| 299 | android:orientation="vertical" /> |
| 300 | <Button |
| 301 | android:id="@+id/reminder_add" |
| 302 | android:text="@string/reminders_label" |
| 303 | android:layout_height="wrap_content" |
| 304 | android:layout_width="wrap_content" |
| 305 | android:layout_marginLeft="8dp" |
| 306 | android:layout_marginBottom="-6dp" |
| 307 | android:gravity="center_vertical|left" |
| 308 | android:textSize="18sp" |
| 309 | android:textColor="#FF777777" |
| 310 | android:minHeight="38dip" |
| 311 | android:background="?android:attr/selectableItemBackground" |
| 312 | android:contentDescription="@string/accessibility_add_reminder" |
| 313 | style="@style/TextAppearance.EditEvent_LabelSmall" |
| 314 | android:textAllCaps="false" /> |
| 315 | </LinearLayout> |
RoboErik | d4208ce | 2011-10-10 18:17:44 -0700 | [diff] [blame] | 316 | </LinearLayout> |
Isaac Katzenelson | 8f4d969 | 2012-02-23 17:34:07 -0800 | [diff] [blame] | 317 | </ScrollView> |
| 318 | </FrameLayout> |