edit_event_1.xml revision a0b7b029a499d4c1f4620fc5f9d3f183c71b61c8
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 <!-- CALENDARS --> 23 <TableRow 24 android:id="@+id/calendar_group"> 25 <TextView 26 android:id="@+id/calendars_label" 27 android:text="@string/edit_event_calendar_label" 28 style="@style/TextAppearance.EditEvent_Label" /> 29 <Spinner 30 android:id="@+id/calendars" 31 android:prompt="@string/edit_event_calendar_label" /> 32 </TableRow> 33 34 <!-- WHAT --> 35 <TableRow> 36 <TextView 37 android:id="@+id/what_label" 38 android:text="@string/what_label" 39 style="@style/TextAppearance.EditEvent_Label" /> 40 <EditText 41 android:id="@+id/title" 42 android:hint="@string/hint_what" 43 android:capitalize="sentences" /> 44 </TableRow> 45 46 <!-- FROM --> 47 <TableRow> 48 <TextView 49 android:id="@+id/from_label" 50 android:text="@string/edit_event_from_label" 51 style="@style/TextAppearance.EditEvent_Label" /> 52 <LinearLayout 53 android:orientation="horizontal"> 54 <Button 55 android:id="@+id/start_date" 56 android:layout_width="0px" 57 android:layout_height="wrap_content" 58 android:layout_weight="7" 59 android:gravity="left|center_vertical" 60 style="?android:attr/textAppearanceMedium" /> 61 <Button 62 android:id="@+id/start_time" 63 android:layout_width="0px" 64 android:layout_height="wrap_content" 65 android:layout_weight="4" 66 android:gravity="left|center_vertical" 67 style="?android:attr/textAppearanceMedium" /> 68 </LinearLayout> 69 </TableRow> 70 71 <!-- TO --> 72 <TableRow> 73 <TextView 74 android:id="@+id/to_label" 75 android:text="@string/edit_event_to_label" 76 style="@style/TextAppearance.EditEvent_Label" /> 77 <LinearLayout 78 android:orientation="horizontal"> 79 <Button 80 android:id="@+id/end_date" 81 android:layout_width="0px" 82 android:layout_height="wrap_content" 83 android:layout_weight="7" 84 android:gravity="left|center_vertical" 85 style="?android:attr/textAppearanceMedium" /> 86 <Button 87 android:id="@+id/end_time" 88 android:layout_width="0px" 89 android:layout_height="wrap_content" 90 android:layout_weight="4" 91 android:gravity="left|center_vertical" 92 style="?android:attr/textAppearanceMedium" /> 93 </LinearLayout> 94 </TableRow> 95 96 <!-- TIME ZONE --> 97 <TableRow> 98 <TextView 99 android:id="@+id/timezone_label" 100 android:text="@string/timezone_label" 101 style="@style/TextAppearance.EditEvent_Label" /> 102 <Button 103 android:id="@+id/timezone" 104 android:gravity="left|center_vertical" 105 style="?android:attr/textAppearanceMedium" /> 106 </TableRow> 107 108 <!-- ALL DAY --> 109 <TableRow> 110 <TextView 111 android:id="@+id/is_all_day_label" 112 android:text="@string/edit_event_all_day_label" 113 style="@style/TextAppearance.EditEvent_Label" 114 android:layout_height="match_parent" 115 android:gravity="center_vertical" /> 116 <CheckBox 117 android:id="@+id/is_all_day" 118 android:layout_height="match_parent" 119 android:gravity="center_vertical" /> 120 </TableRow> 121 122 <!-- WHERE --> 123 <TableRow> 124 <TextView 125 android:text="@string/where_label" 126 style="@style/TextAppearance.EditEvent_Label" /> 127 <EditText 128 android:id="@+id/location" 129 android:singleLine="true" 130 android:hint="@string/hint_where" /> 131 </TableRow> 132 133 <!-- DESCRIPTION --> 134 <TableRow> 135 <TextView 136 android:id="@+id/description_label" 137 android:text="@string/description_label" 138 style="@style/TextAppearance.EditEvent_Label" /> 139 <EditText 140 android:id="@+id/description" 141 android:layout_width="wrap_content" 142 android:hint="@string/hint_description" 143 android:capitalize="sentences" /> 144 </TableRow> 145 146 <!-- REPEATS --> 147 <TableRow> 148 <TextView 149 android:id="@+id/repeats_label" 150 android:text="@string/repeats_label" 151 style="@style/TextAppearance.EditEvent_Label" /> 152 <Spinner 153 android:id="@+id/repeats" 154 android:prompt="@string/repeats_label" /> 155 </TableRow> 156 157 <!-- PRESENCE - Show me as [busy | available] --> 158 <TableRow> 159 <TextView 160 android:id="@+id/presence_label" 161 android:text="@string/presence_label" 162 style="@style/TextAppearance.EditEvent_Label" /> 163 <Spinner 164 android:id="@+id/availability" 165 android:entries="@array/availability" 166 android:prompt="@string/presence_label" /> 167 </TableRow> 168 169 <!-- PRIVACY --> 170 <TableRow> 171 <TextView 172 android:id="@+id/privacy_label" 173 android:text="@string/privacy_label" 174 style="@style/TextAppearance.EditEvent_Label" /> 175 <Spinner 176 android:id="@+id/visibility" 177 android:entries="@array/visibility" 178 android:prompt="@string/privacy_label" /> 179 </TableRow> 180 181 <!-- REMINDERS --> 182 <TableRow> 183 <TextView 184 android:id="@+id/reminders_label" 185 android:text="@string/reminders_label" 186 style="@style/TextAppearance.EditEvent_Label" /> 187 <LinearLayout 188 android:orientation="horizontal"> 189 <LinearLayout 190 android:id="@+id/reminder_items_container" 191 android:layout_width="0dip" 192 android:layout_height="wrap_content" 193 android:layout_weight="1" 194 android:orientation="vertical" /> 195 <ImageButton 196 android:id="@+id/reminder_add" 197 android:layout_width="wrap_content" 198 android:layout_height="wrap_content" 199 style="@style/PlusButton" 200 android:gravity="center_vertical|right" /> 201 </LinearLayout> 202 </TableRow> 203</TableLayout>