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