1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 17 <TableLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:stretchColumns="1" 20 android:shrinkColumns="1"> 21 22 <!-- CALENDARS SELECTOR for new events --> 23 <TableRow 24 android:id="@+id/calendar_selector_group" 25 android:gravity="center_vertical" 26 android:focusable="true" > 27 <TextView 28 android:text="@string/edit_event_calendar_label" 29 style="@style/TextAppearance.EditEvent_Label" 30 android:gravity="center_vertical" /> 31 <Spinner 32 android:id="@+id/calendars_spinner" 33 android:prompt="@string/edit_event_calendar_label" 34 android:layout_gravity="center_vertical" 35 android:gravity="center_vertical" 36 style="@style/TextAppearance.EditEvent_Spinner"/> 37 </TableRow> 38 39 <!-- CALENDAR DISPLAY for existing events --> 40 <TableRow 41 android:id="@+id/calendar_group" 42 android:gravity="center_vertical" 43 android:layout_marginBottom="8dip" 44 android:focusable="true"> 45 <TextView 46 android:text="@string/edit_event_calendar_label" 47 style="@style/TextAppearance.EditEvent_Label" /> 48 <TextView 49 android:id="@+id/calendar_textview" 50 android:textColor="#FFFFFFFF" 51 android:minHeight="48dip" 52 android:paddingLeft="12dip" 53 android:paddingRight="12dip" 54 style="@style/TextAppearance.EditEvent_Value" /> 55 </TableRow> 56 57 <!-- WHAT --> 58 <TableRow> 59 <TextView 60 android:id="@+id/what_label" 61 android:text="@string/what_label" 62 style="@style/TextAppearance.EditEvent_Label" /> 63 <EditText 64 android:id="@+id/title" 65 style="@style/TextAppearance.EditEvent_Value" 66 android:layout_width="wrap_content" 67 android:hint="@string/hint_what" 68 android:capitalize="sentences" 69 android:inputType="textAutoCorrect|textCapSentences" 70 android:focusable="true" /> 71 </TableRow> 72 73 <!-- WHERE --> 74 <TableRow android:id="@+id/where_row" 75 android:focusable="true"> 76 <TextView 77 android:text="@string/where_label" 78 style="@style/TextAppearance.EditEvent_Label" /> 79 <EditText 80 android:id="@+id/location" 81 android:singleLine="false" 82 style="@style/TextAppearance.EditEvent_Value" 83 android:inputType="textAutoCorrect|textCapSentences" 84 android:hint="@string/hint_where" /> 85 </TableRow> 86 87 <!-- WHEN - Read-only textview version of FROM/TO (below) --> 88 <TableRow 89 android:id="@+id/when_row" 90 android:visibility="gone" 91 android:focusable="true"> 92 <TextView 93 android:id="@+id/when_label" 94 android:text="@string/when_label" 95 style="@style/TextAppearance.EditEvent_Label" /> 96 <TextView 97 android:id="@+id/when" 98 android:layout_marginLeft="24dip" 99 android:layout_marginRight="24dip" 100 style="@style/TextAppearance.EditEvent_Value" /> 101 </TableRow> 102 103 <!-- FROM - Read/write version which launches the date/time pickers --> 104 <TableRow 105 android:id="@+id/from_row"> 106 <TextView 107 android:id="@+id/from_label" 108 android:text="@string/edit_event_from_label" 109 style="@style/TextAppearance.EditEvent_Label" /> 110 <LinearLayout 111 android:orientation="horizontal" 112 android:animateLayoutChanges="false"> 113 <Button 114 android:id="@+id/start_date" 115 android:layout_width="0px" 116 android:layout_height="wrap_content" 117 android:layout_weight="7" 118 android:contentDescription="@string/accessibility_pick_start_date" 119 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 120 <Button 121 android:id="@+id/start_time" 122 android:layout_width="0px" 123 android:layout_height="wrap_content" 124 android:layout_weight="4" 125 android:contentDescription="@string/accessibility_pick_start_time" 126 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 127 </LinearLayout> 128 </TableRow> 129 <TableRow android:id="@+id/from_row_home_tz" 130 android:visibility="gone" 131 android:focusable="true"> 132 <TextView/> 133 <LinearLayout android:orientation="horizontal" 134 android:layout_marginLeft="16dip" 135 android:layout_marginRight="16dip" 136 android:paddingLeft="8dip" 137 android:paddingRight="0dip" 138 android:paddingBottom="5dip"> 139 <TextView android:id="@+id/start_date_home_tz" 140 android:layout_width="wrap_content" 141 android:layout_height="wrap_content" 142 android:layout_weight="7" 143 android:gravity="left|center_vertical" 144 style="@style/TextAppearance.EditEvent_homeTime" /> 145 <TextView android:id="@+id/start_time_home_tz" 146 android:layout_width="wrap_content" 147 android:layout_height="wrap_content" 148 android:layout_weight="4" 149 android:gravity="right|center_vertical" 150 style="@style/TextAppearance.EditEvent_homeTime" /> 151 </LinearLayout> 152 </TableRow> 153 154 <!-- TO - Read/write version which launches the date/time pickers --> 155 <TableRow 156 android:id="@+id/to_row"> 157 <TextView 158 android:id="@+id/to_label" 159 android:text="@string/edit_event_to_label" 160 style="@style/TextAppearance.EditEvent_Label" /> 161 <LinearLayout 162 android:orientation="horizontal" 163 android:animateLayoutChanges="false"> 164 <Button 165 android:id="@+id/end_date" 166 android:layout_width="0px" 167 android:layout_height="wrap_content" 168 android:layout_weight="7" 169 android:contentDescription="@string/accessibility_pick_end_date" 170 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 171 <Button 172 android:id="@+id/end_time" 173 android:layout_width="0px" 174 android:layout_height="wrap_content" 175 android:layout_weight="4" 176 android:contentDescription="@string/accessibility_pick_end_time" 177 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 178 </LinearLayout> 179 </TableRow> 180 <TableRow android:id="@+id/to_row_home_tz" 181 android:visibility="gone" 182 android:focusable="true"> 183 <TextView/> 184 <LinearLayout android:orientation="horizontal" 185 android:layout_marginLeft="16dip" 186 android:layout_marginRight="16dip" 187 android:paddingLeft="8dip" 188 android:paddingRight="0dip" 189 android:paddingBottom="5dip"> 190 <TextView android:id="@+id/end_date_home_tz" 191 android:layout_width="wrap_content" 192 android:layout_height="wrap_content" 193 android:layout_weight="7" 194 android:gravity="left|center_vertical" 195 style="@style/TextAppearance.EditEvent_homeTime" /> 196 <TextView android:id="@+id/end_time_home_tz" 197 android:layout_width="wrap_content" 198 android:layout_height="wrap_content" 199 android:layout_weight="4" 200 android:gravity="right|center_vertical" 201 style="@style/TextAppearance.EditEvent_homeTime" /> 202 </LinearLayout> 203 </TableRow> 204 205 <!-- TIME ZONE - Read-only textview version --> 206 <TableRow 207 android:id="@+id/timezone_textview_row" 208 android:visibility="gone" 209 android:focusable="true"> 210 <TextView 211 android:text="@string/timezone_label" 212 style="@style/TextAppearance.EditEvent_Label" /> 213 <TextView 214 android:id="@+id/timezone_textView" 215 android:layout_marginLeft="24dip" 216 android:layout_marginRight="24dip" 217 style="@style/TextAppearance.EditEvent_Value" /> 218 </TableRow> 219 220 <!-- ALL DAY --> 221 <TableRow 222 android:id="@+id/all_day_row"> 223 <TextView 224 android:id="@+id/is_all_day_label" 225 android:text="@string/edit_event_all_day_label" 226 style="@style/TextAppearance.EditEvent_Label" 227 android:layout_height="match_parent" /> 228 <CheckBox 229 android:id="@+id/is_all_day" 230 android:layout_height="match_parent" 231 android:layout_gravity="center_vertical" 232 android:layout_marginLeft="16dip" 233 android:paddingLeft="8dip" 234 android:contentDescription="@string/accessibility_all_day" 235 android:gravity="center_vertical" /> 236 </TableRow> 237 238 <!-- TIME ZONE - Read/write version with button to launch picker --> 239 <TableRow 240 android:id="@+id/timezone_button_row"> 241 <TextView 242 android:id="@+id/timezone_label" 243 android:text="@string/timezone_label" 244 style="@style/TextAppearance.EditEvent_Label" /> 245 <Button 246 android:id="@+id/timezone_button" 247 android:gravity="left|center_vertical" 248 android:contentDescription="@string/accessibility_pick_time_zone" 249 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 250 </TableRow> 251 252 <!-- RESPONSE --> 253 <TableRow 254 android:id="@+id/response_row" 255 android:focusable="true"> 256 <TextView 257 android:id="@+id/response_label" 258 android:text="@string/view_event_response_label" 259 android:gravity="center_vertical" 260 style="@style/TextAppearance.EditEvent_Label" /> 261 <RadioGroup 262 android:id="@+id/response_value" 263 android:orientation="horizontal" 264 android:layout_marginLeft="16dip" 265 android:layout_marginRight="8dip" 266 android:paddingTop="11dip"> 267 <RadioButton 268 android:id="@+id/response_yes" 269 android:layout_width="wrap_content" 270 android:layout_height="wrap_content" 271 android:maxWidth="128dip" 272 android:layout_weight="1" 273 android:gravity="center_vertical" 274 style="@style/TextAppearance.EditEvent" 275 android:text="@string/response_yes" /> 276 <RadioButton 277 android:id="@+id/response_maybe" 278 android:layout_width="wrap_content" 279 android:layout_height="wrap_content" 280 android:maxWidth="128dip" 281 android:layout_weight="1" 282 android:gravity="center_vertical" 283 style="@style/TextAppearance.EditEvent" 284 android:text="@string/response_maybe" /> 285 <RadioButton 286 android:id="@+id/response_no" 287 android:layout_width="wrap_content" 288 android:layout_height="wrap_content" 289 android:maxWidth="128dip" 290 android:layout_weight="1" 291 android:gravity="center_vertical" 292 style="@style/TextAppearance.EditEvent" 293 android:text="@string/response_no" /> 294 </RadioGroup> 295 </TableRow> 296 <TableRow 297 android:id="@+id/organizer_row" 298 android:focusable="true"> 299 <TextView 300 android:id="@+id/organizer_label" 301 android:text="@string/view_event_organizer_label" 302 style="@style/TextAppearance.EditEvent_Label" /> 303 <TextView 304 android:id="@+id/organizer" 305 style="@style/TextAppearance.EditEvent_Value" /> 306 </TableRow> 307 <TableRow 308 android:id="@+id/add_attendees_row"> 309 <TextView 310 android:id="@+id/add_attendees_label" 311 android:text="@string/attendees_label" 312 style="@style/TextAppearance.EditEvent_Label" /> 313 <com.android.ex.chips.RecipientEditTextView 314 android:id="@+id/attendees" 315 android:layout_width="0dip" 316 android:layout_height="wrap_content" 317 android:layout_weight="1" 318 android:inputType="textEmailAddress|textMultiLine|textCapWords" 319 android:hint="@string/hint_attendees" 320 android:imeOptions="actionNext" 321 style="@style/TextAppearance.EditEvent_Value" /> 322 </TableRow> 323 324 <!-- DESCRIPTION --> 325 <TableRow android:id="@+id/description_row" 326 android:focusable="true"> 327 <TextView 328 android:id="@+id/description_label" 329 android:text="@string/description_label" 330 style="@style/TextAppearance.EditEvent_Label" /> 331 <EditText 332 android:id="@+id/description" 333 android:layout_width="wrap_content" 334 android:hint="@string/hint_description" 335 android:inputType="textAutoCorrect|textCapSentences|textMultiLine" 336 style="@style/TextAppearance.EditEvent_Value" 337 android:capitalize="sentences" /> 338 </TableRow> 339 340 <!-- REPEATS --> 341 <TableRow 342 android:focusable="true"> 343 <TextView 344 android:id="@+id/repeats_label" 345 android:text="@string/repeats_label" 346 style="@style/TextAppearance.EditEvent_Label" /> 347 <Spinner 348 android:id="@+id/repeats" 349 style="@style/TextAppearance.EditEvent_Spinner" 350 android:prompt="@string/repeats_label" /> 351 </TableRow> 352 353 <!-- REMINDERS --> 354 <TableRow 355 android:id="@+id/reminders_row" 356 android:focusable="true"> 357 <TextView 358 android:id="@+id/reminders_label" 359 android:text="@string/reminders_label" 360 android:layout_gravity="top|left" 361 style="@style/TextAppearance.EditEvent_Label" /> 362 <LinearLayout 363 android:orientation="horizontal" 364 android:gravity="center_vertical|right"> 365 <LinearLayout 366 android:id="@+id/reminder_items_container" 367 android:layout_width="0dip" 368 android:layout_height="wrap_content" 369 android:layout_weight="1" 370 android:orientation="vertical" 371 android:gravity="center_vertical|right" /> 372 <ImageButton 373 android:id="@+id/reminder_add" 374 android:layout_width="wrap_content" 375 android:layout_height="wrap_content" 376 android:layout_marginTop="3dip" 377 style="@style/PlusButton" 378 android:contentDescription="@string/accessibility_add_reminder" 379 android:gravity="center_vertical|right" 380 android:layout_gravity="top|right" /> 381 </LinearLayout> 382 </TableRow> 383 384 <!-- PRESENCE - Show me as [busy | available] --> 385 <TableRow 386 android:id="@+id/availability_row"> 387 <TextView 388 android:id="@+id/presence_label" 389 android:text="@string/presence_label" 390 style="@style/TextAppearance.EditEvent_Label" /> 391 <Spinner 392 android:id="@+id/availability" 393 android:entries="@array/availability" 394 style="@style/TextAppearance.EditEvent_Spinner" 395 android:prompt="@string/presence_label" /> 396 </TableRow> 397 398 <!-- PRIVACY --> 399 <TableRow 400 android:id="@+id/visibility_row"> 401 <TextView 402 android:id="@+id/privacy_label" 403 android:text="@string/privacy_label" 404 style="@style/TextAppearance.EditEvent_Label" /> 405 <Spinner 406 android:id="@+id/visibility" 407 android:entries="@array/visibility" 408 style="@style/TextAppearance.EditEvent_Spinner" 409 android:prompt="@string/privacy_label" /> 410 </TableRow> 411 412 </TableLayout>