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