edit_event.xml revision 319052089cab383fed2528946b71b45b7af524da
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 17<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/scroll_view" 19 android:layout_width="fill_parent" 20 android:layout_height="fill_parent"> 21 22 <LinearLayout android:id="@+id/event" 23 android:orientation="vertical" 24 android:layout_width="fill_parent" 25 android:layout_height="fill_parent"> 26 27 <!-- WHAT --> 28 <LinearLayout 29 android:orientation="vertical" 30 android:layout_width="fill_parent" 31 android:layout_height="wrap_content" 32 android:padding="5dip"> 33 34 <TextView android:id="@+id/what_label" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:text="@string/what_label" 38 style="@style/TextAppearance.EditEvent_Label"/> 39 40 <EditText android:id="@+id/title" 41 android:layout_width="fill_parent" 42 android:layout_height="wrap_content" 43 android:hint="@string/hint_what" 44 android:capitalize="words"/> 45 </LinearLayout> 46 47 <!-- WHEN --> 48 <View 49 android:layout_width="fill_parent" 50 android:layout_height="1dip" 51 android:background="@android:drawable/divider_horizontal_dark" 52 /> 53 54 <LinearLayout android:id="@+id/when_container" 55 android:orientation="vertical" 56 android:layout_width="fill_parent" 57 android:layout_height="wrap_content" 58 android:padding="5dip"> 59 60 <TextView android:id="@+id/from_label" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:text="@string/edit_event_from_label" 64 style="@style/TextAppearance.EditEvent_Label"/> 65 66 <LinearLayout 67 android:orientation="horizontal" 68 android:layout_width="fill_parent" 69 android:layout_height="wrap_content"> 70 71 <Button android:id="@+id/start_date" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content"/> 74 75 <Button android:id="@+id/start_time" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content"/> 78 79 </LinearLayout> 80 81 <TextView android:id="@+id/to_label" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:text="@string/edit_event_to_label" 85 style="@style/TextAppearance.EditEvent_Label"/> 86 87 <LinearLayout 88 android:orientation="horizontal" 89 android:layout_width="fill_parent" 90 android:layout_height="wrap_content"> 91 92 <Button android:id="@+id/end_date" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content"/> 95 96 <Button android:id="@+id/end_time" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content"/> 99 </LinearLayout> 100 101 <CheckBox android:id="@+id/is_all_day" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:text="@string/edit_event_all_day_label"/> 105 </LinearLayout> 106 107 <!-- WHERE --> 108 <View 109 android:layout_width="fill_parent" 110 android:layout_height="1dip" 111 android:background="@android:drawable/divider_horizontal_dark" 112 /> 113 114 <LinearLayout android:id="@+id/where_container" 115 android:orientation="vertical" 116 android:layout_width="fill_parent" 117 android:layout_height="wrap_content" 118 android:padding="5dip"> 119 120 <TextView 121 android:layout_width="wrap_content" 122 android:layout_height="wrap_content" 123 android:text="@string/where_label" 124 style="@style/TextAppearance.EditEvent_Label"/> 125 126 <EditText android:id="@+id/location" 127 android:layout_width="fill_parent" 128 android:layout_height="wrap_content" 129 android:hint="@string/hint_where" 130 android:capitalize="sentences"/> 131 </LinearLayout> 132 133 <!-- DESCRIPTION --> 134 <View 135 android:layout_width="fill_parent" 136 android:layout_height="1dip" 137 android:background="@android:drawable/divider_horizontal_dark" 138 /> 139 140 <LinearLayout 141 android:orientation="vertical" 142 android:layout_width="fill_parent" 143 android:layout_height="wrap_content" 144 android:padding="5dip"> 145 146 <TextView android:id="@+id/description_label" 147 android:layout_width="wrap_content" 148 android:layout_height="wrap_content" 149 android:text="@string/description_label" 150 style="@style/TextAppearance.EditEvent_Label"/> 151 152 <EditText android:id="@+id/description" 153 android:layout_width="fill_parent" 154 android:layout_height="wrap_content" 155 android:hint="@string/hint_description" 156 android:capitalize="sentences"/> 157 </LinearLayout> 158 159 <!-- CALENDARS --> 160 <View android:id="@+id/calendar_separator" 161 android:layout_width="fill_parent" 162 android:layout_height="1dip" 163 android:background="@android:drawable/divider_horizontal_dark" 164 /> 165 166 <LinearLayout 167 android:orientation="vertical" 168 android:layout_width="fill_parent" 169 android:layout_height="wrap_content" 170 android:paddingLeft="5dip" 171 android:paddingRight="5dip" 172 android:paddingTop="5dip" 173 android:paddingBottom="1dip"> 174 175 <TextView android:id="@+id/calendar_label" 176 android:layout_width="wrap_content" 177 android:layout_height="wrap_content" 178 android:text="@string/edit_event_calendar_label" 179 style="@style/TextAppearance.EditEvent_Label"/> 180 181 <Spinner android:id="@+id/calendars" 182 android:layout_width="fill_parent" 183 android:layout_height="wrap_content" /> 184 </LinearLayout> 185 186 <!-- REMINDERS --> 187 <View android:id="@+id/reminders_separator" 188 android:layout_width="fill_parent" 189 android:layout_height="1dip" 190 android:background="@android:drawable/divider_horizontal_dark" 191 /> 192 193 <LinearLayout android:id="@+id/reminders_container" 194 android:orientation="vertical" 195 android:layout_width="fill_parent" 196 android:layout_height="wrap_content" 197 android:paddingLeft="5dip" 198 android:paddingRight="5dip" 199 android:paddingTop="5dip" 200 android:paddingBottom="1dip"> 201 202 <TextView android:id="@+id/reminders_label" 203 android:layout_width="wrap_content" 204 android:layout_height="wrap_content" 205 android:text="@string/reminders_label" 206 style="@style/TextAppearance.EditEvent_Label"/> 207 208 <LinearLayout android:id="@+id/reminder_items_container" 209 android:orientation="vertical" 210 android:layout_width="fill_parent" 211 android:layout_height="wrap_content"> 212 </LinearLayout> 213 </LinearLayout> 214 215 <!-- REPEATS --> 216 <View 217 android:layout_width="fill_parent" 218 android:layout_height="1dip" 219 android:background="@android:drawable/divider_horizontal_dark" 220 /> 221 222 <LinearLayout 223 android:orientation="vertical" 224 android:layout_width="fill_parent" 225 android:layout_height="wrap_content" 226 android:paddingLeft="5dip" 227 android:paddingRight="5dip" 228 android:paddingTop="5dip" 229 android:paddingBottom="1dip"> 230 231 <TextView android:id="@+id/repeats_label" 232 android:layout_width="wrap_content" 233 android:layout_height="wrap_content" 234 android:text="@string/repeats_label" 235 style="@style/TextAppearance.EditEvent_Label"/> 236 237 <Spinner android:id="@+id/repeats" 238 android:layout_width="fill_parent" 239 android:layout_height="wrap_content"/> 240 </LinearLayout> 241 242 <!-- MORE OPTIONS --> 243 <LinearLayout android:id="@+id/extra_options_container" 244 android:orientation="vertical" 245 android:layout_width="fill_parent" 246 android:layout_height="wrap_content" 247 android:visibility="gone"> 248 249 <!-- PRESENCE --> 250 <View 251 android:layout_width="fill_parent" 252 android:layout_height="1dip" 253 android:background="@android:drawable/divider_horizontal_dark" 254 /> 255 256 <LinearLayout 257 android:orientation="vertical" 258 android:layout_width="fill_parent" 259 android:layout_height="wrap_content" 260 android:paddingLeft="5dip" 261 android:paddingRight="5dip" 262 android:paddingTop="5dip" 263 android:paddingBottom="1dip"> 264 265 <TextView android:id="@+id/presence_label" 266 android:layout_width="wrap_content" 267 android:layout_height="wrap_content" 268 android:text="@string/presence_label" 269 style="@style/TextAppearance.EditEvent_Label"/> 270 271 <Spinner android:id="@+id/availability" 272 android:layout_width="fill_parent" 273 android:layout_height="wrap_content" 274 android:entries="@array/availability" /> 275 </LinearLayout> 276 277 <!-- PRIVACY --> 278 <View 279 android:layout_width="fill_parent" 280 android:layout_height="1dip" 281 android:background="@android:drawable/divider_horizontal_dark" 282 /> 283 284 <LinearLayout 285 android:orientation="vertical" 286 android:layout_width="fill_parent" 287 android:layout_height="wrap_content" 288 android:paddingLeft="5dip" 289 android:paddingRight="5dip" 290 android:paddingTop="5dip" 291 android:paddingBottom="1dip"> 292 293 <TextView android:id="@+id/privacy_label" 294 android:layout_width="wrap_content" 295 android:layout_height="wrap_content" 296 android:text="@string/privacy_label" 297 style="@style/TextAppearance.EditEvent_Label"/> 298 299 <Spinner android:id="@+id/visibility" 300 android:layout_width="fill_parent" 301 android:layout_height="wrap_content" 302 android:entries="@array/visibility" /> 303 </LinearLayout> 304 </LinearLayout> 305 306 <!-- BUTTONS --> 307 <LinearLayout 308 android:orientation="horizontal" 309 android:layout_width="fill_parent" 310 android:layout_height="wrap_content" 311 android:paddingTop="5dip" 312 android:paddingLeft="4dip" 313 android:paddingRight="4dip" 314 android:paddingBottom="1dip" 315 android:background="@android:drawable/bottom_bar" > 316 317 <Button android:id="@+id/save" 318 android:layout_width="0dip" 319 android:layout_height="fill_parent" 320 android:layout_weight="1" 321 android:text="@string/save_label" 322 /> 323 324 <Button android:id="@+id/discard" 325 android:layout_width="0dip" 326 android:layout_height="fill_parent" 327 android:layout_weight="1" 328 android:text="@string/discard_label" 329 /> 330 331 <Button android:id="@+id/delete" 332 android:layout_width="0dip" 333 android:layout_height="fill_parent" 334 android:layout_weight="1" 335 android:text="@string/delete_label" 336 /> 337 </LinearLayout> 338 </LinearLayout> 339</ScrollView> 340