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