event_info_dialog.xml revision 2782a9cac3babb9952f8ca2286368315195c6678
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2006 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<ScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/event_info_scroll_view" 20 android:orientation="vertical" 21 android:layout_width="match_parent" 22 android:background="#fafafa" 23 android:layout_weight="1" 24 android:layout_height="match_parent"> 25 26 <LinearLayout 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:layout_weight="1" 30 android:padding="16dip" 31 android:orientation="vertical" 32 android:animateLayoutChanges="false"> 33 34 <!-- Container for the event's headline 35 Name, Date, Time & Location 36 --> 37 <LinearLayout 38 android:id="@+id/event_info_headline" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:paddingTop="12dip" 42 android:paddingBottom="16dip" 43 android:layout_weight="1" 44 android:orientation="vertical"> 45 46 <LinearLayout 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:orientation="horizontal"> 50 <!-- WHAT --> 51 <TextView 52 android:id="@+id/title" 53 android:layout_weight=".8" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:autoLink="all" 57 android:textStyle="bold" 58 android:textColor="@color/event_info_headline_color" 59 android:paddingLeft="16dip" 60 android:paddingRight="16dip" 61 style="?android:attr/textAppearanceLarge" 62 android:textSize="30sp" /> 63 <!-- BUTTONS --> 64 <LinearLayout 65 android:id="@+id/event_info_buttons_container" 66 android:orientation="horizontal" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_marginLeft="16dip" 70 android:layout_marginRight="16dip" 71 android:layout_gravity="right"> 72 <Button 73 android:id="@+id/edit" 74 android:layout_width="32dip" 75 android:layout_height="32dip" 76 android:layout_weight="1" 77 android:enabled="false" 78 android:layout_marginTop="8dip" 79 android:layout_marginRight="16dip" 80 style="?android:attr/buttonBarButtonStyle" 81 android:background="@drawable/ic_menu_compose_holo_dark" /> 82 <Button 83 android:id="@+id/delete" 84 android:layout_width="32dip" 85 android:layout_height="32dip" 86 android:layout_marginTop="8dip" 87 android:layout_marginLeft="16dip" 88 android:layout_weight="1" 89 style="?android:attr/buttonBarButtonStyle" 90 android:background="@drawable/ic_menu_trash_holo_dark" /> 91 </LinearLayout> 92 </LinearLayout> 93 94 <!-- WHEN --> 95 <TextView 96 android:id="@+id/when_date" 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:textSize="18sp" 100 android:layout_marginTop="2dip" 101 android:paddingLeft="16dip" 102 android:paddingRight="16dip" 103 android:textColor="@color/event_info_headline_color" 104 style="?android:attr/textAppearanceLarge" /> 105 106 <TextView 107 android:id="@+id/when_time" 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" 110 android:textSize="18sp" 111 android:paddingLeft="16dip" 112 android:paddingRight="16dip" 113 android:textColor="@color/event_info_headline_color" 114 style="?android:attr/textAppearanceLarge" /> 115 116 <!-- WHERE --> 117 <TextView 118 android:id="@+id/where" 119 android:layout_width="match_parent" 120 android:layout_height="wrap_content" 121 android:ellipsize="end" 122 android:singleLine="false" 123 android:layout_marginTop="8dip" 124 android:textSize="18sp" 125 android:paddingLeft="16dip" 126 android:paddingRight="16dip" 127 android:textColor="@color/event_info_headline_color" 128 android:textColorLink="@color/event_info_headline_link_color" 129 style="?android:attr/textAppearanceLarge" /> 130 </LinearLayout> 131 132 <!-- Organizer --> 133 <LinearLayout 134 android:id="@+id/organizer_container" 135 android:visibility="gone" 136 android:layout_marginTop="10dip" 137 android:orientation="horizontal" 138 android:layout_width="match_parent" 139 android:layout_height="wrap_content"> 140 <TextView 141 android:id="@+id/organizer_label" 142 android:layout_width="wrap_content" 143 android:layout_height="wrap_content" 144 android:paddingLeft="16dip" 145 android:paddingRight="16dip" 146 android:singleLine="true" 147 android:text="@string/event_info_organizer" 148 android:textColor="@color/event_info_organizer_color" 149 style="?android:attr/textAppearanceSmall" 150 android:textSize="18sp"/> 151 <TextView 152 android:id="@+id/organizer" 153 android:layout_width="wrap_content" 154 android:layout_height="wrap_content" 155 android:ellipsize="end" 156 android:layout_weight="1" 157 android:singleLine="true" 158 android:layout_marginLeft="4dip" 159 android:layout_marginRight="8dip" 160 android:textColor="@color/event_info_organizer_color" 161 style="?android:attr/textAppearanceSmall" 162 android:textSize="18sp"/> 163 </LinearLayout> 164 165 <!-- DESCRIPTION --> 166 <include 167 android:id="@+id/description" 168 layout="@layout/expandable_textview" /> 169 170 <!-- RESPONSE --> 171 <LinearLayout 172 android:id="@+id/response_container" 173 android:visibility="gone" 174 android:orientation="vertical" 175 android:layout_width="match_parent" 176 android:layout_height="wrap_content"> 177 <TextView 178 android:id="@+id/response_label" 179 android:layout_width="match_parent" 180 android:layout_height="32dip" 181 android:layout_gravity="center_vertical" 182 android:paddingLeft="8dip" 183 android:paddingRight="16dip" 184 android:layout_marginTop="8dip" 185 android:layout_marginLeft="8dip" 186 android:textColor="@color/event_info_label_color" 187 android:textAppearance="?android:attr/textAppearanceMedium" 188 style="?android:attr/listSeparatorTextViewStyle" 189 android:text="@string/view_event_response_label" /> 190 <RadioGroup 191 android:id="@+id/response_value" 192 android:layout_width="match_parent" 193 android:layout_height="wrap_content" 194 android:layout_gravity="center_vertical" 195 android:layout_marginTop="8dip" 196 android:layout_marginBottom="8dip" 197 android:paddingLeft="9dip" 198 android:orientation="horizontal"> 199 <RadioButton 200 android:id="@+id/response_yes" 201 android:layout_width="0dip" 202 android:layout_height="wrap_content" 203 android:layout_weight="1" 204 android:minWidth="96dip" 205 style="?android:attr/textAppearanceMedium" 206 android:textColor="@color/event_info_body_color" 207 android:text="@string/response_yes" /> 208 <RadioButton 209 android:id="@+id/response_maybe" 210 android:layout_width="0dip" 211 android:layout_height="wrap_content" 212 android:layout_weight="1" 213 android:minWidth="96dip" 214 style="?android:attr/textAppearanceMedium" 215 android:textColor="@color/event_info_body_color" 216 android:text="@string/response_maybe" /> 217 <RadioButton 218 android:id="@+id/response_no" 219 android:layout_width="0dip" 220 android:layout_height="wrap_content" 221 android:layout_weight="1" 222 android:minWidth="96dip" 223 style="?android:attr/textAppearanceMedium" 224 android:textColor="@color/event_info_body_color" 225 android:text="@string/response_no" /> 226 </RadioGroup> 227 </LinearLayout> 228 <!-- GUEST LIST --> 229 <com.android.calendar.event.AttendeesView 230 android:id="@+id/long_attendee_list" 231 android:textColor="@color/event_info_body_color" 232 android:orientation="vertical" 233 android:layout_height="wrap_content" 234 android:layout_width="match_parent" 235 android:visibility="gone" 236 android:layout_marginTop="5dip"/> 237 238 <!-- REMINDERS --> 239 <LinearLayout 240 android:id="@+id/reminders_row" 241 android:orientation="vertical" 242 android:layout_width="match_parent" 243 android:layout_height="wrap_content" 244 android:focusable="true"> 245 <TextView 246 android:id="@+id/response_label" 247 android:layout_width="match_parent" 248 android:layout_height="wrap_content" 249 android:layout_gravity="center_vertical" 250 android:paddingLeft="8dip" 251 android:paddingRight="16dip" 252 android:layout_marginTop="4dip" 253 android:layout_marginLeft="8dip" 254 android:textColor="@color/event_info_label_color" 255 android:textAppearance="?android:attr/textAppearanceMedium" 256 style="?android:attr/listSeparatorTextViewStyle" 257 android:text="@string/event_info_reminders_label" /> 258 <LinearLayout 259 android:id="@+id/reminder_items_container" 260 android:layout_width="match_parent" 261 android:layout_height="wrap_content" 262 android:layout_marginLeft="-8dp" 263 android:layout_weight="1" 264 android:orientation="vertical" /> 265 <Button 266 android:id="@+id/reminder_add" 267 android:text="@string/reminders_label" 268 android:layout_height="wrap_content" 269 android:layout_width="wrap_content" 270 android:layout_marginLeft="8dp" 271 android:layout_marginBottom="-6dp" 272 android:gravity="center_vertical|left" 273 android:textSize="18sp" 274 android:textColor="#FF777777" 275 android:minHeight="38dip" 276 android:background="@null" 277 android:contentDescription="@string/accessibility_add_reminder" 278 style="@style/TextAppearance.EditEvent_LabelSmall" 279 android:textAllCaps="false" /> 280 </LinearLayout> 281 </LinearLayout> 282</ScrollView> 283