edit_event_1.xml revision 070fabec2dc365afac318847d8fed6f9a4d158f3
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 17<TableLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:stretchColumns="1" 20 android:shrinkColumns="1"> 21 22 <!-- WHAT --> 23 <TableRow> 24 <TextView 25 android:id="@+id/what_label" 26 style="@style/TextAppearance.EditEvent_Label" /> 27 <EditText 28 android:id="@+id/title" 29 style="@style/TextAppearance.EditEvent_Value" 30 android:textSize="24sp" 31 android:textStyle="bold" 32 android:layout_width="wrap_content" 33 android:hint="@string/hint_what" 34 android:capitalize="sentences" 35 android:focusable="true" /> 36 </TableRow> 37 38 <!-- CALENDARS SELECTOR for new events --> 39 <TableRow 40 android:id="@+id/calendar_selector_group" 41 android:focusable="true" > 42 <TextView 43 android:text="@string/edit_event_calendar_label" 44 style="@style/TextAppearance.EditEvent_Label" 45 android:layout_gravity="center_vertical" 46 android:gravity="center_vertical" /> 47 <Spinner 48 android:id="@+id/calendars_spinner" 49 android:prompt="@string/edit_event_calendar_label" 50 style="@style/TextAppearance.EditEvent_Value" 51 android:layout_gravity="center_vertical" 52 android:gravity="center_vertical" /> 53 </TableRow> 54 55 <!-- CALENDAR DISPLAY for existing events --> 56 <TableRow 57 android:id="@+id/calendar_group" 58 android:focusable="true"> 59 <TextView 60 android:text="@string/edit_event_calendar_label" 61 style="@style/TextAppearance.EditEvent_Label" /> 62 <TextView 63 android:id="@+id/calendar_textview" 64 style="@style/TextAppearance.EditEvent_Value" /> 65 </TableRow> 66 67 <!-- WHEN - Read-only textview version of FROM/TO (below) --> 68 <TableRow 69 android:id="@+id/when_row" 70 android:visibility="gone" 71 android:focusable="true"> 72 <TextView 73 android:id="@+id/when_label" 74 android:text="@string/when_label" 75 style="@style/TextAppearance.EditEvent_Label" /> 76 <TextView 77 android:id="@+id/when" 78 style="@style/TextAppearance.EditEvent_Value" /> 79 </TableRow> 80 81 <!-- FROM - Read/write version which launches the date/time pickers --> 82 <TableRow 83 android:id="@+id/from_row"> 84 <TextView 85 android:id="@+id/from_label" 86 android:text="@string/edit_event_from_label" 87 style="@style/TextAppearance.EditEvent_Label" /> 88 <LinearLayout 89 android:orientation="horizontal" 90 android:animateLayoutChanges="false"> 91 <Button 92 android:id="@+id/start_date" 93 android:layout_width="0px" 94 android:layout_height="wrap_content" 95 android:layout_weight="7" 96 android:background="@drawable/edit_event_button_selector" 97 android:gravity="left|center_vertical" 98 style="@style/TextAppearance.EditEvent_Value" /> 99 <Button 100 android:id="@+id/start_time" 101 android:layout_width="0px" 102 android:layout_height="wrap_content" 103 android:layout_weight="4" 104 android:background="@drawable/edit_event_button_selector" 105 android:gravity="left|center_vertical" 106 style="@style/TextAppearance.EditEvent_Value" /> 107 </LinearLayout> 108 </TableRow> 109 <TableRow android:id="@+id/from_row_home" 110 android:visibility="gone" 111 android:focusable="true"> 112 <TextView/> 113 <LinearLayout android:orientation="horizontal" 114 android:paddingLeft="5dip" 115 android:paddingRight="5dip" 116 android:paddingBottom="8dip"> 117 <TextView android:id="@+id/start_date_home" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:layout_weight="7" 121 android:gravity="left|center_vertical" 122 style="@style/TextAppearance.EditEvent_homeTime" /> 123 <TextView android:id="@+id/start_time_home" 124 android:layout_width="wrap_content" 125 android:layout_height="wrap_content" 126 android:layout_weight="4" 127 android:gravity="right|center_vertical" 128 style="@style/TextAppearance.EditEvent_homeTime" /> 129 </LinearLayout> 130 </TableRow> 131 132 <!-- TO - Read/write version which launches the date/time pickers --> 133 <TableRow 134 android:id="@+id/to_row"> 135 <TextView 136 android:id="@+id/to_label" 137 android:text="@string/edit_event_to_label" 138 style="@style/TextAppearance.EditEvent_Label" /> 139 <LinearLayout 140 android:orientation="horizontal" 141 android:animateLayoutChanges="false"> 142 <Button 143 android:id="@+id/end_date" 144 android:layout_width="0px" 145 android:layout_height="wrap_content" 146 android:layout_weight="7" 147 android:background="@drawable/edit_event_button_selector" 148 android:gravity="left|center_vertical" 149 style="@style/TextAppearance.EditEvent_Value" /> 150 <Button 151 android:id="@+id/end_time" 152 android:layout_width="0px" 153 android:layout_height="wrap_content" 154 android:layout_weight="4" 155 android:background="@drawable/edit_event_button_selector" 156 android:gravity="left|center_vertical" 157 style="@style/TextAppearance.EditEvent_Value" /> 158 </LinearLayout> 159 </TableRow> 160 <TableRow android:id="@+id/to_row_home" 161 android:visibility="gone" 162 android:focusable="true"> 163 <TextView/> 164 <LinearLayout android:orientation="horizontal" 165 android:paddingLeft="5dip" 166 android:paddingRight="5dip" 167 android:paddingBottom="8dip"> 168 <TextView android:id="@+id/end_date_home" 169 android:layout_width="wrap_content" 170 android:layout_height="wrap_content" 171 android:layout_weight="7" 172 android:gravity="left|center_vertical" 173 style="@style/TextAppearance.EditEvent_homeTime" /> 174 <TextView android:id="@+id/end_time_home" 175 android:layout_width="wrap_content" 176 android:layout_height="wrap_content" 177 android:layout_weight="4" 178 android:gravity="right|center_vertical" 179 style="@style/TextAppearance.EditEvent_homeTime" /> 180 </LinearLayout> 181 </TableRow> 182 183 <!-- TIME ZONE - Read-only textview version --> 184 <TableRow 185 android:id="@+id/timezone_textview_row" 186 android:visibility="gone" 187 android:focusable="true"> 188 <TextView 189 android:text="@string/timezone_label" 190 style="@style/TextAppearance.EditEvent_Label" /> 191 <TextView 192 android:id="@+id/timezone_textView" 193 style="@style/TextAppearance.EditEvent_Value" /> 194 </TableRow> 195 196 <!-- TIME ZONE - Read/write version with button to launch picker --> 197 <TableRow 198 android:id="@+id/timezone_button_row"> 199 <TextView 200 android:id="@+id/timezone_label" 201 android:text="@string/timezone_label" 202 style="@style/TextAppearance.EditEvent_Label" /> 203 <Button 204 android:id="@+id/timezone_button" 205 android:gravity="left|center_vertical" 206 android:background="@drawable/edit_event_button_selector" 207 style="@style/TextAppearance.EditEvent_Value" /> 208 </TableRow> 209 210 <!-- ALL DAY --> 211 <TableRow 212 android:id="@+id/all_day_row"> 213 <TextView 214 android:id="@+id/is_all_day_label" 215 android:text="@string/edit_event_all_day_label" 216 style="@style/TextAppearance.EditEvent_Label" 217 android:layout_height="match_parent" 218 android:gravity="center_vertical" /> 219 <CheckBox 220 android:id="@+id/is_all_day" 221 android:layout_height="match_parent" 222 android:gravity="center_vertical" /> 223 </TableRow> 224 225 <!-- WHERE --> 226 <TableRow android:id="@+id/where_row" 227 android:focusable="true"> 228 <TextView 229 android:text="@string/where_label" 230 style="@style/TextAppearance.EditEvent_Label" /> 231 <EditText 232 android:id="@+id/location" 233 android:singleLine="true" 234 style="@style/TextAppearance.EditEvent_Value" 235 android:hint="@string/hint_where" /> 236 </TableRow> 237 238 <!-- DESCRIPTION --> 239 <TableRow android:id="@+id/description_row" 240 android:focusable="true"> 241 <TextView 242 android:id="@+id/description_label" 243 android:text="@string/description_label" 244 style="@style/TextAppearance.EditEvent_Label" /> 245 <EditText 246 android:id="@+id/description" 247 android:layout_width="wrap_content" 248 android:hint="@string/hint_description" 249 style="@style/TextAppearance.EditEvent_Value" 250 android:capitalize="sentences" /> 251 </TableRow> 252 253 <!-- REPEATS --> 254 <TableRow 255 android:focusable="true"> 256 <TextView 257 android:id="@+id/repeats_label" 258 android:text="@string/repeats_label" 259 style="@style/TextAppearance.EditEvent_Label" /> 260 <Spinner 261 android:id="@+id/repeats" 262 style="@style/TextAppearance.EditEvent_Value" 263 android:prompt="@string/repeats_label" /> 264 </TableRow> 265 266 <!-- REMINDERS --> 267 <TableRow 268 android:id="@+id/reminders_row" 269 android:focusable="true"> 270 <TextView 271 android:id="@+id/reminders_label" 272 android:text="@string/reminders_label" 273 style="@style/TextAppearance.EditEvent_Label" /> 274 <LinearLayout 275 android:orientation="horizontal"> 276 <LinearLayout 277 android:id="@+id/reminder_items_container" 278 android:layout_width="0dip" 279 android:layout_height="wrap_content" 280 android:layout_weight="1" 281 android:orientation="vertical" /> 282 <ImageButton 283 android:id="@+id/reminder_add" 284 android:layout_width="wrap_content" 285 android:layout_height="wrap_content" 286 style="@style/PlusButton" 287 android:gravity="center_vertical|right" /> 288 </LinearLayout> 289 </TableRow> 290 291 <!-- PRESENCE - Show me as [busy | available] --> 292 <TableRow 293 android:id="@+id/availability_row"> 294 <TextView 295 android:id="@+id/presence_label" 296 android:text="@string/presence_label" 297 style="@style/TextAppearance.EditEvent_Label" /> 298 <Spinner 299 android:id="@+id/availability" 300 android:entries="@array/availability" 301 style="@style/TextAppearance.EditEvent_Value" 302 android:prompt="@string/presence_label" /> 303 </TableRow> 304 305 <!-- PRIVACY --> 306 <TableRow 307 android:id="@+id/visibility_row"> 308 <TextView 309 android:id="@+id/privacy_label" 310 android:text="@string/privacy_label" 311 style="@style/TextAppearance.EditEvent_Label" /> 312 <Spinner 313 android:id="@+id/visibility" 314 android:entries="@array/visibility" 315 style="@style/TextAppearance.EditEvent_Value" 316 android:prompt="@string/privacy_label" /> 317 </TableRow> 318</TableLayout>