1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2008 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 android:paddingTop="16dip" 23 android:paddingBottom="16dip" 24 android:gravity="center_vertical" 25 android:minHeight="?android:attr/listPreferredItemHeight"> 26 27 <LinearLayout 28 android:orientation="horizontal" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content"> 31 32 <View 33 android:id="@+id/color_square" 34 android:layout_width="12dip" 35 android:layout_height="12dip" 36 android:layout_gravity="top|left" 37 android:layout_marginTop="6dip" 38 android:layout_marginLeft="16dip" 39 android:layout_marginRight="16dip" /> 40 41 <TextView 42 android:id="@+id/event_title" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:ellipsize="end" 46 android:maxLines="2" 47 android:textSize="18sp" /> 48 </LinearLayout> 49 50 <LinearLayout 51 android:orientation="horizontal" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:layout_marginLeft="44dip"> 55 56 <TextView 57 android:id="@+id/when" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_gravity="center_vertical" 61 android:ellipsize="end" 62 android:maxLines="1" 63 android:textSize="14sp" /> 64 65 <ImageView 66 android:id="@+id/repeat_icon" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_gravity="center_vertical" 70 android:layout_marginLeft="5dip" 71 android:src="@drawable/ic_repeat_dark" 72 android:focusable="false" 73 android:clickable="false" /> 74 </LinearLayout> 75 76 <TextView 77 android:id="@+id/where" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:layout_marginLeft="44dip" 81 android:ellipsize="end" 82 android:maxLines="1" 83 android:textSize="14sp" /> 84</LinearLayout> 85