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 | --> |
| 16 | |
| 17 | <LinearLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:orientation="vertical" |
| 20 | android:background="#fafafa" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 23 | android:divider="?android:attr/dividerHorizontal" |
| 24 | android:showDividers="middle"> |
| 25 | |
| 26 | <LinearLayout |
| 27 | android:layout_width="match_parent" |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 28 | android:layout_height="wrap_content" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 29 | android:layout_weight="1" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 30 | android:orientation="horizontal"> |
| 31 | |
| 32 | <!-- CALENDAR COLOR --> |
| 33 | <View |
| 34 | android:id="@+id/color" |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 35 | android:layout_width="5dip" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 36 | android:layout_height="match_parent" |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 37 | android:layout_gravity="top|left" /> |
| 38 | <ScrollView |
| 39 | android:orientation="vertical" |
| 40 | android:layout_width="0dip" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 41 | android:layout_weight="1" |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 42 | android:layout_height="match_parent"> |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 43 | |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 44 | <LinearLayout |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 45 | android:layout_width="match_parent" |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 46 | android:layout_height="wrap_content" |
| 47 | android:layout_weight="1" |
| 48 | android:orientation="vertical"> |
| 49 | |
| 50 | <!-- Container for the event's headline |
| 51 | Name, Date, Time & Location |
| 52 | --> |
| 53 | <LinearLayout |
| 54 | android:id="@+id/event_info_headline" |
| 55 | android:layout_width="match_parent" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:layout_weight="1" |
| 58 | android:background="@android:color/black" |
| 59 | android:orientation="vertical"> |
| 60 | |
| 61 | <!-- WHAT --> |
| 62 | <TextView |
| 63 | android:id="@+id/title" |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:autoLink="all" |
| 67 | android:textStyle="bold" |
| 68 | android:textColor="@android:color/white" |
| 69 | android:paddingLeft="10dip" |
| 70 | style="?android:attr/textAppearanceLarge" |
| 71 | android:textSize="26sp" /> |
| 72 | |
| 73 | <!-- WHEN --> |
| 74 | <TextView |
| 75 | android:id="@+id/when_date" |
| 76 | android:layout_width="wrap_content" |
| 77 | android:layout_height="wrap_content" |
| 78 | android:layout_marginTop="3dip" |
| 79 | android:paddingLeft="10dip" |
| 80 | android:textColor="@android:color/white" |
| 81 | style="?android:attr/textAppearanceLarge" /> |
| 82 | |
| 83 | <TextView |
| 84 | android:id="@+id/when_time" |
| 85 | android:layout_width="wrap_content" |
| 86 | android:layout_height="wrap_content" |
| 87 | android:layout_marginTop="3dip" |
| 88 | android:paddingLeft="10dip" |
| 89 | android:textColor="@android:color/white" |
| 90 | style="?android:attr/textAppearanceLarge" /> |
| 91 | |
| 92 | <!-- WHERE --> |
| 93 | <TextView |
| 94 | android:id="@+id/where" |
| 95 | android:layout_width="match_parent" |
| 96 | android:layout_height="wrap_content" |
| 97 | android:ellipsize="end" |
| 98 | android:singleLine="true" |
| 99 | android:layout_marginTop="3dip" |
| 100 | android:paddingLeft="10dip" |
| 101 | android:textColor="@android:color/white" |
| 102 | android:textColorLink="@android:color/white" |
| 103 | android:layout_marginBottom="5dip" |
| 104 | style="?android:attr/textAppearanceLarge" /> |
| 105 | </LinearLayout> |
| 106 | |
| 107 | <!-- CALENDAR --> |
| 108 | <TextView |
| 109 | android:id="@+id/calendar" |
| 110 | android:layout_width="match_parent" |
| 111 | android:layout_height="wrap_content" |
| 112 | android:paddingLeft="10dip" |
| 113 | android:layout_marginTop="10dip" |
| 114 | android:singleLine="true" |
| 115 | android:textColor="@android:color/black" |
| 116 | style="?android:attr/textAppearanceSmall" |
| 117 | android:textSize="12sp"/> |
| 118 | |
| 119 | <!-- Time Zone --> |
| 120 | <LinearLayout |
| 121 | android:id="@+id/timezone_container" |
| 122 | android:visibility="gone" |
| 123 | android:layout_marginTop="10dip" |
| 124 | android:orientation="horizontal" |
| 125 | android:layout_width="match_parent" |
| 126 | android:layout_height="wrap_content"> |
| 127 | <TextView |
| 128 | android:id="@+id/timezone_label" |
| 129 | android:layout_width="wrap_content" |
| 130 | android:layout_height="wrap_content" |
| 131 | android:paddingLeft="10dip" |
| 132 | android:singleLine="true" |
| 133 | android:textStyle="bold" |
| 134 | android:text="@string/event_info_timezone" |
| 135 | android:textColor="@android:color/black" |
| 136 | style="?android:attr/textAppearanceSmall" |
| 137 | android:textSize="12sp"/> |
| 138 | <TextView |
| 139 | android:id="@+id/timezone" |
| 140 | android:layout_width="wrap_content" |
| 141 | android:layout_height="wrap_content" |
| 142 | android:layout_weight="1" |
| 143 | android:layout_marginLeft="3dip" |
| 144 | android:singleLine="true" |
| 145 | android:textColor="@android:color/black" |
| 146 | style="?android:attr/textAppearanceSmall" |
| 147 | android:textSize="12sp"/> |
| 148 | </LinearLayout> |
| 149 | |
| 150 | <!-- Organizer --> |
| 151 | <LinearLayout |
| 152 | android:id="@+id/organizer_container" |
| 153 | android:visibility="gone" |
| 154 | android:layout_marginTop="10dip" |
| 155 | android:orientation="horizontal" |
| 156 | android:layout_width="match_parent" |
| 157 | android:layout_height="wrap_content"> |
| 158 | <TextView |
| 159 | android:id="@+id/organizer_label" |
| 160 | android:layout_width="wrap_content" |
| 161 | android:layout_height="wrap_content" |
| 162 | android:paddingLeft="10dip" |
| 163 | android:textStyle="bold" |
| 164 | android:singleLine="true" |
| 165 | android:text="@string/event_info_organizer" |
| 166 | android:textColor="@android:color/black" |
| 167 | style="?android:attr/textAppearanceSmall" |
| 168 | android:textSize="12sp"/> |
| 169 | <TextView |
| 170 | android:id="@+id/organizer" |
| 171 | android:layout_width="wrap_content" |
| 172 | android:layout_height="wrap_content" |
| 173 | android:ellipsize="end" |
| 174 | android:layout_weight="1" |
| 175 | android:singleLine="true" |
| 176 | android:layout_marginLeft="3dip" |
| 177 | android:textColor="@android:color/black" |
| 178 | style="?android:attr/textAppearanceSmall" |
| 179 | android:textSize="12sp"/> |
| 180 | </LinearLayout> |
| 181 | |
| 182 | <!-- REPEATS --> |
| 183 | <LinearLayout |
| 184 | android:id="@+id/repeat_container" |
| 185 | android:visibility="gone" |
| 186 | android:layout_marginTop="10dip" |
| 187 | android:orientation="horizontal" |
| 188 | android:layout_width="match_parent" |
| 189 | android:layout_height="wrap_content"> |
| 190 | <TextView |
| 191 | android:id="@+id/repeat_label" |
| 192 | android:layout_width="wrap_content" |
| 193 | android:layout_height="wrap_content" |
| 194 | android:text="@string/event_info_repetition" |
| 195 | android:paddingLeft="10dip" |
| 196 | android:textStyle="bold" |
| 197 | android:textColor="@android:color/black" |
| 198 | style="?android:attr/textAppearanceSmall" |
| 199 | android:textSize="12sp"/> |
| 200 | <TextView |
| 201 | android:id="@+id/repeat" |
| 202 | android:layout_width="match_parent" |
| 203 | android:layout_height="wrap_content" |
| 204 | android:layout_weight="1" |
| 205 | android:layout_marginLeft="3dip" |
| 206 | android:textColor="@android:color/black" |
| 207 | style="?android:attr/textAppearanceSmall" |
| 208 | android:textSize="12sp"/> |
| 209 | </LinearLayout> |
| 210 | |
| 211 | <!-- DESCRIPTION --> |
| 212 | <TextView |
| 213 | android:id="@+id/description" |
| 214 | android:layout_width="match_parent" |
| 215 | android:layout_height="0dip" |
| 216 | android:layout_weight="1" |
| 217 | android:paddingLeft="10dip" |
| 218 | android:layout_marginTop="10dip" |
| 219 | android:autoLink="all" |
| 220 | android:ellipsize="end" |
| 221 | android:maxLines="8" |
| 222 | android:textColor="@android:color/black" |
| 223 | style="?android:attr/textAppearanceSmall" /> |
| 224 | <Button |
| 225 | android:id="@+id/desc_expand" |
| 226 | android:layout_width="match_parent" |
| 227 | android:layout_height="wrap_content" |
| 228 | android:paddingLeft="10dip" |
| 229 | android:paddingRight="10dip" |
| 230 | android:layout_marginTop="5dip" |
| 231 | android:textColor="@android:color/black" |
| 232 | style="?android:attr/textAppearanceSmall" /> |
| 233 | |
| 234 | <!-- RESPONSE --> |
| 235 | <LinearLayout |
| 236 | android:id="@+id/response_container" |
| 237 | android:visibility="gone" |
| 238 | android:orientation="vertical" |
| 239 | android:background="#FFEEEEEE" |
| 240 | android:layout_width="match_parent" |
| 241 | android:layout_height="wrap_content"> |
| 242 | <TextView |
| 243 | android:id="@+id/response_label" |
| 244 | android:layout_width="match_parent" |
| 245 | android:layout_height="wrap_content" |
| 246 | android:layout_gravity="center_vertical" |
| 247 | android:paddingLeft="10dip" |
| 248 | android:layout_marginTop="5dip" |
| 249 | android:textStyle="bold" |
| 250 | style="?android:attr/textAppearanceMedium" |
| 251 | android:textColor="@android:color/black" |
| 252 | android:text="@string/view_event_response_label" /> |
| 253 | <RadioGroup |
| 254 | android:id="@+id/response_value" |
| 255 | android:layout_width="match_parent" |
| 256 | android:layout_height="wrap_content" |
| 257 | android:layout_gravity="center_vertical" |
| 258 | android:layout_marginTop="-2dip" |
| 259 | android:layout_marginBottom="13dip" |
| 260 | android:orientation="horizontal"> |
| 261 | <RadioButton |
| 262 | android:id="@+id/response_yes" |
| 263 | android:layout_width="0dip" |
| 264 | android:layout_height="wrap_content" |
| 265 | android:layout_weight="1" |
| 266 | android:minWidth="96dip" |
| 267 | style="?android:attr/textAppearanceMedium" |
| 268 | android:textColor="@android:color/black" |
| 269 | android:text="@string/response_yes" /> |
| 270 | <RadioButton |
| 271 | android:id="@+id/response_maybe" |
| 272 | android:layout_width="0dip" |
| 273 | android:layout_height="wrap_content" |
| 274 | android:layout_weight="1" |
| 275 | android:minWidth="96dip" |
| 276 | style="?android:attr/textAppearanceMedium" |
| 277 | android:textColor="@android:color/black" |
| 278 | android:text="@string/response_maybe" /> |
| 279 | <RadioButton |
| 280 | android:id="@+id/response_no" |
| 281 | android:layout_width="0dip" |
| 282 | android:layout_height="wrap_content" |
| 283 | android:layout_weight="1" |
| 284 | android:minWidth="96dip" |
| 285 | style="?android:attr/textAppearanceMedium" |
| 286 | android:textColor="@android:color/black" |
| 287 | android:text="@string/response_no" /> |
| 288 | </RadioGroup> |
| 289 | </LinearLayout> |
| 290 | <!-- GUEST LIST --> |
| 291 | <TextView |
| 292 | android:id="@+id/attendee_list" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 293 | android:layout_width="wrap_content" |
| 294 | android:layout_height="wrap_content" |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 295 | android:textColor="@android:color/black" |
| 296 | android:layout_marginTop="5dip" |
| 297 | android:paddingLeft="10dip" |
| 298 | android:maxLines="2" |
| 299 | android:ellipsize="end" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 300 | style="?android:attr/textAppearanceMedium" /> |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 301 | <com.android.calendar.event.AttendeesView |
| 302 | android:id="@+id/long_attendee_list" |
| 303 | android:textColor="@android:color/black" |
| 304 | android:orientation="vertical" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 305 | android:layout_height="wrap_content" |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 306 | android:layout_width="match_parent" |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 307 | android:animateLayoutChanges="true" |
| 308 | android:layout_marginTop="5dip"/> |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 309 | </LinearLayout> |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 310 | </ScrollView> |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 311 | </LinearLayout> |
| 312 | |
Isaac Katzenelson | d6e7583 | 2011-06-07 12:34:51 -0700 | [diff] [blame^] | 313 | <!-- BUTTONS --> |
Isaac Katzenelson | 0bab38f | 2011-04-08 15:50:13 -0700 | [diff] [blame] | 314 | <LinearLayout |
| 315 | android:orientation="horizontal" |
| 316 | android:layout_width="match_parent" |
| 317 | android:layout_height="48dip" |
| 318 | android:gravity="center" |
| 319 | android:layout_marginBottom="4dip" |
| 320 | style="?android:attr/buttonBarStyle"> |
| 321 | <Button |
| 322 | android:id="@+id/edit" |
| 323 | android:layout_width="0dip" |
| 324 | android:layout_height="wrap_content" |
| 325 | android:layout_weight="1" |
| 326 | android:enabled="false" |
| 327 | style="?android:attr/buttonBarButtonStyle" |
| 328 | android:text="@string/edit_event_label" /> |
| 329 | <Button |
| 330 | android:id="@+id/delete" |
| 331 | android:layout_width="0dip" |
| 332 | android:layout_height="wrap_content" |
| 333 | android:layout_weight="1" |
| 334 | style="?android:attr/buttonBarButtonStyle" |
| 335 | android:text="@string/delete_label" /> |
| 336 | </LinearLayout> |
| 337 | </LinearLayout> |