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 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:layout_weight="1.0" > 21 22 <LinearLayout 23 android:orientation="vertical" 24 android:background="#fafafa" 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:layout_alignParentTop="true" > 28 29 <LinearLayout android:id="@+id/cal_background" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:paddingTop="10dip" 33 android:paddingBottom="8dip" 34 android:paddingLeft="8dip" 35 android:paddingRight="8dip"> 36 37 <LinearLayout android:id="@+id/event" 38 android:background="@drawable/bg_cal_card" 39 android:orientation="vertical" 40 android:layout_height="wrap_content" 41 android:layout_width="match_parent" 42 android:layout_weight="1"> 43 44 <!-- WHAT --> 45 <TextView android:id="@+id/title" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:textStyle="bold" 49 android:paddingBottom="7dip" 50 style="?android:attr/textAppearanceMedium" 51 /> 52 53 <!-- CALENDAR --> 54 <RelativeLayout android:id="@+id/calendar_container" 55 android:orientation="horizontal" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:paddingBottom="5dip"> 59 60 <TextView android:id="@+id/calendar_label" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:layout_marginRight="5dip" 64 android:text="@string/view_event_calendar_label" 65 style="?android:attr/textAppearanceSmall" 66 /> 67 68 <TextView android:id="@+id/calendar" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:singleLine="true" 72 android:layout_toRightOf="@id/calendar_label" 73 android:layout_alignTop="@id/calendar_label" 74 style="?android:attr/textAppearanceSmall" 75 /> 76 77 <TextView android:id="@+id/owner" 78 android:layout_width="match_parent" 79 android:layout_height="wrap_content" 80 android:singleLine="true" 81 android:layout_alignLeft="@id/calendar_label" 82 android:layout_below="@id/calendar_label" 83 android:textAppearance="?android:attr/textAppearanceSmall" 84 /> 85 86 </RelativeLayout> 87 88 <View android:id="@+id/divider" 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" 91 android:background="@android:drawable/divider_horizontal_dark" 92 /> 93 94 <!-- WHEN --> 95 <TextView android:id="@+id/when" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:paddingTop="7dip" 99 android:textStyle="bold" 100 style="?android:attr/textAppearanceSmall" 101 /> 102 103 <!-- TIMEZONE --> 104 <LinearLayout android:id="@+id/timezone_container" 105 android:orientation="horizontal" 106 android:layout_width="match_parent" 107 android:layout_height="wrap_content"> 108 109 <TextView android:id="@+id/timezone_label" 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 android:layout_marginRight="5dip" 113 android:text="@string/view_event_timezone_label" 114 style="?android:attr/textAppearanceSmall" 115 /> 116 117 <TextView android:id="@+id/timezone" 118 android:layout_width="match_parent" 119 android:layout_height="wrap_content" 120 style="?android:attr/textAppearanceSmall" 121 /> 122 </LinearLayout> 123 124 <!-- REPEATS --> 125 <LinearLayout android:id="@+id/repeat_container" 126 android:orientation="horizontal" 127 android:layout_width="match_parent" 128 android:layout_height="wrap_content"> 129 130 <ImageView android:id="@+id/repeat_icon" 131 android:layout_width="wrap_content" 132 android:layout_height="wrap_content" 133 android:layout_gravity="center" 134 android:src="@drawable/ic_repeat_dark" 135 android:focusable="false" 136 android:clickable="false" 137 /> 138 139 <TextView android:id="@+id/repeat" 140 android:layout_width="match_parent" 141 android:layout_height="wrap_content" 142 android:layout_marginLeft="3dip" 143 style="?android:attr/textAppearanceSmall" 144 /> 145 </LinearLayout> 146 147 <!-- WHERE --> 148 <TextView android:id="@+id/where" 149 android:layout_width="match_parent" 150 android:layout_height="wrap_content" 151 android:paddingLeft="8dip" 152 android:paddingRight="8dip" 153 android:autoLink="all" 154 style="?android:attr/textAppearanceSmall" 155 /> 156 157 <!-- Organizer --> 158 <LinearLayout android:id="@+id/organizer_container" 159 android:orientation="horizontal" 160 android:layout_width="match_parent" 161 android:layout_height="wrap_content" 162 android:paddingBottom="5dip" 163 > 164 165 <TextView 166 android:layout_width="wrap_content" 167 android:layout_height="wrap_content" 168 android:layout_marginRight="5dip" 169 android:text="@string/view_event_organizer_label" 170 style="?android:attr/textAppearanceSmall" 171 /> 172 173 <TextView android:id="@+id/organizer" 174 android:layout_width="match_parent" 175 android:layout_height="wrap_content" 176 style="?android:attr/textAppearanceSmall" 177 /> 178 </LinearLayout> 179 180 <!-- DESCRIPTION --> 181 <TextView android:id="@+id/description" 182 android:layout_width="match_parent" 183 android:layout_height="wrap_content" 184 android:paddingLeft="8dip" 185 android:paddingRight="8dip" 186 android:autoLink="all" 187 style="?android:attr/textAppearanceSmall" 188 /> 189 190 </LinearLayout> 191 </LinearLayout> 192 193 <!-- RESPONSE --> 194 <LinearLayout android:id="@+id/response_container" 195 android:orientation="vertical" 196 android:layout_width="match_parent" 197 android:layout_height="wrap_content" 198 android:paddingLeft="8dip" 199 android:paddingRight="8dip" 200 android:paddingTop="5dip" 201 android:paddingBottom="1dip"> 202 203 <TextView android:id="@+id/response_label" 204 android:layout_width="wrap_content" 205 android:layout_height="wrap_content" 206 android:text="@string/view_event_response_label" 207 style="@style/TextAppearance.EventInfo_Label"/> 208 209 <Spinner android:id="@+id/response_value" 210 style="?android:attr/textAppearanceMedium" 211 android:prompt="@string/view_event_response_label" 212 android:layout_width="match_parent" 213 android:layout_height="wrap_content" 214 android:entries="@array/response_labels1"/> 215 </LinearLayout> 216 217 <!-- GUEST LIST --> 218 <LinearLayout 219 android:id="@+id/attendee_list" 220 android:layout_width="match_parent" 221 android:layout_height="wrap_content" 222 android:paddingLeft="8dip" 223 android:orientation="vertical" /> 224 225 <!-- REMINDERS --> 226 <LinearLayout android:id="@+id/reminders_container" 227 android:orientation="vertical" 228 android:layout_width="match_parent" 229 android:layout_height="wrap_content" 230 android:paddingLeft="8dip" 231 android:paddingRight="7dip" 232 android:paddingTop="5dip" 233 android:paddingBottom="5dip"> 234 235 <TextView android:id="@+id/reminders_label" 236 android:layout_width="wrap_content" 237 android:layout_height="wrap_content" 238 android:text="@string/reminders_label" 239 style="@style/TextAppearance.EventInfo_Label"/> 240 241 <LinearLayout android:id="@+id/reminder_items_container" 242 style="?android:attr/textAppearanceMedium" 243 android:orientation="vertical" 244 android:layout_width="match_parent" 245 android:layout_height="wrap_content"> 246 </LinearLayout> 247 <LinearLayout android:id="@+id/reminder_adder" 248 android:layout_width="match_parent" 249 android:layout_height="wrap_content" 250 android:gravity="center_vertical|right"> 251 252 <TextView 253 android:layout_width="wrap_content" 254 android:layout_height="wrap_content" 255 android:layout_marginRight="7dip" 256 android:text="@string/add_new_reminder"/> 257 258 <ImageButton android:id="@+id/reminder_add" 259 style="@style/PlusButton" 260 android:layout_width="wrap_content" 261 android:layout_height="wrap_content" 262 /> 263 </LinearLayout> 264 </LinearLayout> 265 </LinearLayout> 266</ScrollView> 267