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 <LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:orientation="vertical" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content"> 22 23 <!-- RESPONSE --> 24 <LinearLayout 25 android:id="@+id/response_row" 26 android:orientation="vertical" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:minHeight="64dip" 30 android:focusable="true"> 31 <TextView 32 android:id="@+id/response_label" 33 android:text="@string/view_event_response_label" 34 android:gravity="center_vertical" 35 android:layout_height="wrap_content" 36 android:layout_width="wrap_content" 37 style="@style/TextAppearance.EditEvent_LabelSmall" /> 38 <RadioGroup 39 android:id="@+id/response_value" 40 android:orientation="horizontal" 41 android:layout_height="wrap_content" 42 android:layout_width="match_parent" 43 android:layout_marginLeft="16dip" 44 android:layout_marginRight="8dip" 45 android:paddingTop="5dip"> 46 <RadioButton 47 android:id="@+id/response_yes" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:maxWidth="128dip" 51 android:layout_weight="1" 52 android:gravity="center_vertical" 53 style="@style/TextAppearance.EditEvent" 54 android:text="@string/response_yes" /> 55 <RadioButton 56 android:id="@+id/response_maybe" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:maxWidth="128dip" 60 android:layout_weight="1" 61 android:gravity="center_vertical" 62 style="@style/TextAppearance.EditEvent" 63 android:text="@string/response_maybe" /> 64 <RadioButton 65 android:id="@+id/response_no" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:maxWidth="128dip" 69 android:layout_weight="1" 70 android:gravity="center_vertical" 71 style="@style/TextAppearance.EditEvent" 72 android:text="@string/response_no" /> 73 </RadioGroup> 74 <View 75 style="@style/EditEventSeparator"/> 76 </LinearLayout> 77 78 <LinearLayout 79 android:id="@+id/organizer_row" 80 android:orientation="vertical" 81 android:layout_width="match_parent" 82 android:layout_height="wrap_content" 83 android:minHeight="48dip" 84 android:focusable="true"> 85 <TextView 86 android:id="@+id/organizer_label" 87 android:text="@string/view_event_organizer_label" 88 android:layout_height="wrap_content" 89 android:layout_width="wrap_content" 90 style="@style/TextAppearance.EditEvent_LabelSmall" /> 91 <TextView 92 android:id="@+id/organizer" 93 android:layout_height="wrap_content" 94 android:layout_width="wrap_content" 95 style="@style/TextAppearance.EditEvent_Value" /> 96 <View 97 style="@style/EditEventSeparator"/> 98 </LinearLayout> 99 100 <LinearLayout 101 android:id="@+id/add_attendees_row" 102 android:orientation="vertical" 103 android:layout_width="match_parent" 104 android:layout_height="wrap_content" 105 android:minHeight="48dip"> 106 <TextView 107 android:text="@string/attendees_label" 108 android:layout_height="wrap_content" 109 android:layout_width="wrap_content" 110 android:layout_marginTop="8dip" 111 style="@style/TextAppearance.EditEvent_LabelSmall" /> 112 <com.android.ex.chips.RecipientEditTextView 113 android:id="@+id/attendees" 114 android:layout_marginTop="2dip" 115 android:layout_width="match_parent" 116 android:layout_height="wrap_content" 117 android:inputType="textEmailAddress|textMultiLine|textCapWords" 118 android:hint="@string/hint_attendees" 119 android:imeOptions="actionNext" 120 style="@style/TextAppearance.EditEvent_Value" /> 121 </LinearLayout> 122 123 <View 124 style="@style/EditEventSeparator"/> 125 126 <!-- DESCRIPTION --> 127 <LinearLayout android:id="@+id/description_row" 128 android:orientation="vertical" 129 android:layout_width="match_parent" 130 android:layout_height="wrap_content" 131 android:layout_marginBottom="6dip" 132 android:focusable="true"> 133 <EditText 134 android:id="@+id/description" 135 android:layout_height="wrap_content" 136 android:layout_width="match_parent" 137 android:layout_gravity="bottom" 138 android:minHeight="48dip" 139 android:hint="@string/hint_description" 140 android:inputType="textAutoCorrect|textCapSentences|textMultiLine" 141 style="@style/TextAppearance.EditEvent_Value" 142 android:capitalize="sentences" /> 143 </LinearLayout> 144 145 <View 146 style="@style/EditEventSeparator"/> 147 148 <!-- REPEATS --> 149 <LinearLayout 150 android:orientation="vertical" 151 android:layout_width="match_parent" 152 android:layout_height="wrap_content" 153 android:paddingBottom="6dp" 154 android:focusable="true"> 155 <TextView 156 android:id="@+id/repeats_label" 157 android:text="@string/repeats_label" 158 android:layout_height="wrap_content" 159 android:layout_width="wrap_content" 160 style="@style/TextAppearance.EditEvent_LabelSmall" /> 161 <Spinner 162 android:id="@+id/repeats" 163 style="@style/TextAppearance.EditEvent_Spinner" 164 android:layout_height="wrap_content" 165 android:layout_width="match_parent" 166 android:contentDescription="@string/accessibility_repeats" 167 android:prompt="@string/repeats_label" /> 168 </LinearLayout> 169 170 <View 171 style="@style/EditEventSeparator"/> 172 173 <!-- REMINDERS --> 174 <LinearLayout 175 android:id="@+id/reminders_row" 176 android:orientation="vertical" 177 android:layout_width="match_parent" 178 android:layout_height="wrap_content" 179 android:focusable="true"> 180 <TextView 181 android:id="@+id/reminders_group_label" 182 android:text="@string/event_info_reminders_label" 183 android:layout_height="wrap_content" 184 android:layout_width="wrap_content" 185 android:gravity="center_vertical" 186 android:layout_marginBottom="0dip" 187 style="@style/TextAppearance.EditEvent_LabelSmall" /> 188 <LinearLayout 189 android:id="@+id/reminder_items_container" 190 android:layout_height="wrap_content" 191 android:layout_width="match_parent" 192 android:layout_marginTop="-8dip" 193 android:layout_marginBottom="8dip" 194 android:layout_marginRight="8dip" 195 android:orientation="vertical" /> 196 <Button 197 android:id="@+id/reminder_add" 198 android:text="@string/reminders_label" 199 android:layout_height="wrap_content" 200 android:layout_width="wrap_content" 201 android:layout_gravity="center_vertical" 202 android:gravity="top" 203 android:paddingBottom="12dp" 204 android:layout_marginTop="0dip" 205 android:layout_marginBottom="0dip" 206 android:textAllCaps="false" 207 android:textSize="18sp" 208 android:textColor="#FF777777" 209 android:minHeight="20dip" 210 android:background="@null" 211 android:contentDescription="@string/accessibility_add_reminder" 212 style="@style/TextAppearance.EditEvent_LabelSmall" /> 213 </LinearLayout> 214 215 <!-- PRESENCE - Show me as [busy | available] --> 216 <LinearLayout 217 android:id="@+id/availability_row" 218 android:orientation="vertical" 219 android:layout_width="match_parent" 220 android:layout_height="wrap_content" 221 android:paddingBottom="6dp"> 222 <TextView 223 android:id="@+id/presence_label" 224 android:text="@string/presence_label" 225 android:layout_height="wrap_content" 226 android:layout_width="wrap_content" 227 style="@style/TextAppearance.EditEvent_LabelSmall" 228 android:paddingRight="4dip" /> 229 <Spinner 230 android:id="@+id/availability" 231 android:entries="@array/availability" 232 style="@style/TextAppearance.EditEvent_Spinner" 233 android:layout_height="wrap_content" 234 android:layout_width="match_parent" 235 android:contentDescription="@string/accessibility_reminder_showmeas" 236 android:prompt="@string/presence_label" /> 237 </LinearLayout> 238 239 <!-- PRIVACY --> 240 <LinearLayout 241 android:id="@+id/visibility_row" 242 android:orientation="vertical" 243 android:layout_width="match_parent" 244 android:layout_height="wrap_content" 245 android:paddingBottom="6dp"> 246 <TextView 247 android:id="@+id/privacy_label" 248 android:text="@string/privacy_label" 249 android:layout_height="wrap_content" 250 android:layout_width="wrap_content" 251 style="@style/TextAppearance.EditEvent_LabelSmall" /> 252 <Spinner 253 android:id="@+id/visibility" 254 android:entries="@array/visibility" 255 style="@style/TextAppearance.EditEvent_Spinner" 256 android:layout_height="wrap_content" 257 android:layout_width="match_parent" 258 android:contentDescription="@string/accessibility_reminder_privacy" 259 android:prompt="@string/privacy_label" /> 260 </LinearLayout> 261 262 </LinearLayout> 263