edit_event_1.xml revision a8b8c0d17adf3e8f9b34a5da89592aa7069c0bdd
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2010 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<LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content"> 21 22 <!-- CALENDARS SELECTOR for new events --> 23 <LinearLayout 24 android:id="@+id/calendar_selector_group" 25 android:orientation="horizontal" 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:focusable="true" > 29 <Spinner 30 android:id="@+id/calendars_spinner" 31 android:prompt="@string/edit_event_calendar_label" 32 android:layout_height="wrap_content" 33 android:layout_width="0dip" 34 android:layout_weight="1" 35 android:layout_gravity="center_vertical" 36 android:paddingBottom="10dip" 37 android:paddingTop="10dip" 38 android:layout_marginLeft="12dip" 39 android:layout_marginRight="12dip" 40 android:gravity="center_vertical" /> 41 <ImageButton 42 android:id="@+id/change_color_new_event" 43 style="@style/EditEventColorImageButton" 44 android:visibility="invisible" /> 45 </LinearLayout> 46 47 <!-- CALENDAR DISPLAY for existing events --> 48 <LinearLayout 49 android:id="@+id/calendar_group" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:paddingBottom="5dip" 53 android:paddingTop="5dip" 54 android:focusable="true"> 55 <LinearLayout 56 android:layout_width="0dip" 57 android:layout_weight="1" 58 android:layout_height="wrap_content" 59 android:focusable="true" 60 android:orientation="vertical" > 61 <TextView 62 android:id="@+id/calendar_textview" 63 android:layout_height="wrap_content" 64 android:layout_width="match_parent" 65 android:textColor="#FFFFFFFF" 66 android:layout_marginLeft="24dip" 67 android:layout_marginRight="24dip" 68 style="@style/TextAppearance.EditEvent_Value" /> 69 <TextView 70 android:id="@+id/calendar_textview_secondary" 71 android:layout_height="wrap_content" 72 android:layout_width="match_parent" 73 android:textColor="#FFFFFFFF" 74 android:layout_marginLeft="24dip" 75 android:layout_marginRight="24dip" 76 android:textSize="14sp" 77 style="@style/TextAppearance.EditEvent_Value" /> 78 </LinearLayout> 79 <ImageButton 80 android:id="@+id/change_color_existing_event" 81 style="@style/EditEventColorImageButton" 82 android:visibility="gone" /> 83 </LinearLayout> 84 85 <!-- WHAT --> 86 <EditText 87 android:id="@+id/title" 88 style="@style/TextAppearance.EditEvent_Value" 89 android:singleLine="true" 90 android:layout_width="match_parent" 91 android:layout_height="wrap_content" 92 android:layout_marginTop="4dip" 93 android:minHeight="48dip" 94 android:hint="@string/hint_what" 95 android:capitalize="sentences" 96 android:inputType="textAutoCorrect|textCapSentences" 97 android:focusable="true" /> 98 99 <!-- WHERE --> 100 <LinearLayout android:id="@+id/where_row" 101 android:orientation="vertical" 102 android:layout_width="match_parent" 103 android:layout_height="wrap_content" 104 android:layout_marginBottom="6dip" 105 android:focusable="true"> 106 <AutoCompleteTextView 107 android:id="@+id/location" 108 android:singleLine="false" 109 android:layout_height="wrap_content" 110 android:layout_width="match_parent" 111 android:minHeight="48dip" 112 android:imeOptions="actionDone" 113 style="@style/TextAppearance.EditEvent_Value" 114 android:inputType="textAutoCorrect|textCapSentences" 115 android:hint="@string/hint_where" /> 116 <View 117 style="@style/EditEventSeparator"/> 118 </LinearLayout> 119 120 <!-- WHEN - Read-only textview version of FROM/TO (below) --> 121 <LinearLayout 122 android:id="@+id/when_row" 123 android:visibility="gone" 124 android:orientation="vertical" 125 android:layout_width="match_parent" 126 android:layout_height="wrap_content" 127 android:minHeight="48dip" 128 android:focusable="true"> 129 <TextView 130 android:id="@+id/when_label" 131 android:text="@string/when_label" 132 android:layout_height="wrap_content" 133 android:layout_width="wrap_content" 134 android:layout_marginBottom="-8dip" 135 style="@style/TextAppearance.EditEvent_LabelSmall" /> 136 <TextView 137 android:id="@+id/when" 138 android:layout_height="wrap_content" 139 android:layout_width="wrap_content" 140 android:layout_marginLeft="24dip" 141 android:layout_marginRight="24dip" 142 style="@style/TextAppearance.EditEvent_Value" /> 143 </LinearLayout> 144 145 <!-- FROM - Read/write version which launches the date/time pickers --> 146 <LinearLayout 147 android:id="@+id/from_row" 148 android:orientation="vertical" 149 android:layout_width="match_parent" 150 android:layout_height="wrap_content" 151 android:minHeight="64dip"> 152 <TextView 153 android:id="@+id/from_label" 154 android:layout_height="wrap_content" 155 android:layout_width="match_parent" 156 android:text="@string/edit_event_from_label" 157 style="@style/TextAppearance.EditEvent_LabelSmall" /> 158 <LinearLayout 159 android:layout_height="wrap_content" 160 android:layout_width="match_parent" 161 android:orientation="horizontal" 162 android:layout_marginTop="-6dip" 163 android:animateLayoutChanges="false"> 164 <Button 165 android:id="@+id/start_date" 166 android:layout_width="0px" 167 android:layout_height="wrap_content" 168 android:layout_weight="7" 169 android:singleLine="true" 170 android:paddingRight="4dp" 171 android:layout_marginRight="0dp" 172 android:contentDescription="@string/accessibility_pick_start_date" 173 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 174 <Button 175 android:id="@+id/start_time" 176 android:layout_width="0px" 177 android:layout_height="wrap_content" 178 android:layout_weight="4" 179 android:contentDescription="@string/accessibility_pick_start_time" 180 android:layout_marginLeft="0dip" 181 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 182 </LinearLayout> 183 </LinearLayout> 184 <LinearLayout android:id="@+id/from_row_home_tz" 185 android:visibility="gone" 186 android:orientation="horizontal" 187 android:layout_width="match_parent" 188 android:layout_height="wrap_content" 189 android:paddingBottom="8dip" 190 android:layout_marginLeft="24dip" 191 android:layout_marginRight="16dip" 192 android:focusable="true"> 193 <TextView android:id="@+id/start_date_home_tz" 194 android:layout_width="wrap_content" 195 android:layout_height="wrap_content" 196 android:layout_weight="7" 197 android:gravity="left|center_vertical" 198 style="@style/TextAppearance.EditEvent_homeTime" /> 199 <TextView android:id="@+id/start_time_home_tz" 200 android:layout_width="wrap_content" 201 android:layout_height="wrap_content" 202 android:layout_weight="4" 203 android:gravity="right|center_vertical" 204 style="@style/TextAppearance.EditEvent_homeTime" /> 205 </LinearLayout> 206 207 <!-- TO - Read/write version which launches the date/time pickers --> 208 <LinearLayout 209 android:id="@+id/to_row" 210 android:orientation="vertical" 211 android:layout_width="match_parent" 212 android:layout_height="wrap_content" 213 android:minHeight="64dip"> 214 <TextView 215 android:id="@+id/to_label" 216 android:text="@string/edit_event_to_label" 217 android:layout_height="wrap_content" 218 android:layout_width="match_parent" 219 style="@style/TextAppearance.EditEvent_LabelSmall" /> 220 <LinearLayout 221 android:orientation="horizontal" 222 android:layout_height="wrap_content" 223 android:layout_width="match_parent" 224 android:layout_marginTop="-6dip" 225 android:animateLayoutChanges="false"> 226 <Button 227 android:id="@+id/end_date" 228 android:layout_width="0px" 229 android:layout_height="wrap_content" 230 android:layout_weight="7" 231 android:singleLine="true" 232 android:paddingRight="4dp" 233 android:layout_marginRight="0dp" 234 android:contentDescription="@string/accessibility_pick_end_date" 235 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 236 <Button 237 android:id="@+id/end_time" 238 android:layout_width="0px" 239 android:layout_height="wrap_content" 240 android:layout_weight="4" 241 android:contentDescription="@string/accessibility_pick_end_time" 242 android:layout_marginLeft="0dip" 243 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 244 </LinearLayout> 245 </LinearLayout> 246 <LinearLayout 247 android:id="@+id/to_row_home_tz" 248 android:visibility="gone" 249 android:focusable="true" 250 android:orientation="horizontal" 251 android:layout_width="match_parent" 252 android:layout_height="wrap_content" 253 android:paddingBottom="8dip" 254 android:layout_marginLeft="24dip" 255 android:layout_marginRight="16dip"> 256 <TextView android:id="@+id/end_date_home_tz" 257 android:layout_width="wrap_content" 258 android:layout_height="wrap_content" 259 android:layout_weight="7" 260 android:gravity="left|center_vertical" 261 style="@style/TextAppearance.EditEvent_homeTime" /> 262 <TextView android:id="@+id/end_time_home_tz" 263 android:layout_width="wrap_content" 264 android:layout_height="wrap_content" 265 android:layout_weight="4" 266 android:gravity="right|center_vertical" 267 style="@style/TextAppearance.EditEvent_homeTime" /> 268 </LinearLayout> 269 270 <!-- ALL DAY --> 271 <LinearLayout 272 android:id="@+id/all_day_row" 273 android:orientation="horizontal" 274 android:gravity="center_vertical" 275 android:layout_marginTop="4dip" 276 android:layout_width="match_parent" 277 android:layout_height="wrap_content" 278 android:minHeight="24dip"> 279 <CheckBox 280 android:id="@+id/is_all_day" 281 android:layout_height="match_parent" 282 android:layout_width="wrap_content" 283 android:layout_gravity="center_vertical" 284 android:gravity="center_vertical" 285 android:layout_marginLeft="16dip" 286 android:layout_marginRight="0dip" 287 android:contentDescription="@string/accessibility_all_day"/> 288 <TextView 289 android:id="@+id/is_all_day_label" 290 android:text="@string/edit_event_all_day_label" 291 android:layout_height="wrap_content" 292 android:layout_width="0dip" 293 android:layout_weight="1" 294 android:layout_marginLeft="-8dip" 295 android:layout_gravity="center_vertical|left" 296 android:gravity="center_vertical|left" 297 style="@style/TextAppearance.EditEvent_Small" /> 298 </LinearLayout> 299 300 <!-- TIME ZONE - Read-only textview version --> 301 <LinearLayout 302 android:id="@+id/timezone_textview_row" 303 android:visibility="gone" 304 android:orientation="vertical" 305 android:layout_width="match_parent" 306 android:layout_height="wrap_content" 307 android:minHeight="48dip" 308 android:focusable="true"> 309 <TextView 310 android:id="@+id/timezone_textView" 311 android:layout_height="wrap_content" 312 android:layout_width="wrap_content" 313 android:layout_marginLeft="24dip" 314 android:layout_marginRight="24dip" 315 style="@style/TextAppearance.EditEvent_Value" /> 316 </LinearLayout> 317 318 <!-- TIME ZONE - Read/write version with button to launch picker --> 319 <LinearLayout 320 android:id="@+id/timezone_button_row" 321 android:orientation="vertical" 322 android:layout_width="match_parent" 323 android:layout_height="wrap_content" 324 android:minHeight="48dip"> 325 <Button 326 android:id="@+id/timezone_button" 327 android:gravity="left|center_vertical" 328 android:layout_height="wrap_content" 329 android:layout_width="match_parent" 330 android:contentDescription="@string/accessibility_pick_time_zone" 331 style="@style/TextAppearance.EditEvent_SpinnerButton" /> 332 </LinearLayout> 333 334 335 <View 336 style="@style/EditEventSeparator"/> 337</LinearLayout>