1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 * Copyright (C) 2008 Esmertec AG. 5 * Copyright (C) 2008 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 --> 20 21 <com.android.mms.ui.ConversationListItem xmlns:android="http://schemas.android.com/apk/res/android" 22 android:layout_width="match_parent" 23 android:layout_height="?android:attr/listPreferredItemHeight" 24 android:background="@drawable/conversation_item_background_unread" 25 android:paddingRight="10dip" > 26 27 <android.widget.QuickContactBadge 28 android:id="@+id/avatar" 29 android:visibility="gone" 30 android:layout_marginLeft="7dip" 31 android:layout_centerVertical="true" 32 style="?android:attr/quickContactBadgeStyleWindowSmall" /> 33 34 <ImageView 35 android:id="@+id/presence" 36 android:visibility="gone" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:layout_marginRight="5dip" 40 android:layout_alignParentRight="true" 41 android:layout_centerVertical="true" 42 android:paddingBottom="20dip" 43 /> 44 45 <TextView android:id="@+id/from" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:textAppearance="?android:attr/textAppearanceMediumInverse" 49 android:singleLine="true" 50 android:layout_marginTop="6dip" 51 android:layout_marginRight="5dip" 52 android:layout_marginLeft="7dip" 53 android:layout_alignParentTop="true" 54 android:layout_toRightOf="@id/avatar" 55 android:layout_toLeftOf="@id/presence" 56 android:layout_alignWithParentIfMissing="true" 57 android:ellipsize="marquee" /> 58 59 <TextView android:id="@+id/date" 60 android:layout_marginTop="2dip" 61 android:layout_marginBottom="10dip" 62 android:layout_marginLeft="5dip" 63 android:layout_height="wrap_content" 64 android:layout_width="wrap_content" 65 android:textAppearance="?android:attr/textAppearanceSmallInverse" 66 android:singleLine="true" 67 android:layout_alignParentRight="true" 68 android:layout_alignParentBottom="true" /> 69 70 <ImageView android:id="@+id/error" 71 android:layout_marginLeft="3dip" 72 android:visibility="invisible" 73 android:layout_toLeftOf="@id/date" 74 android:layout_alignBottom="@id/date" 75 android:layout_height="wrap_content" 76 android:layout_width="wrap_content" 77 android:src="@drawable/ic_list_alert_sms_failed" /> 78 79 <ImageView android:id="@+id/attachment" 80 android:layout_marginLeft="3dip" 81 android:layout_height="wrap_content" 82 android:layout_width="wrap_content" 83 android:visibility="gone" 84 android:layout_toLeftOf="@id/error" 85 android:layout_alignBottom="@id/date" 86 android:src="@drawable/ic_attachment_universal_small" /> 87 88 <TextView android:id="@+id/subject" 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:textAppearance="?android:attr/textAppearanceSmallInverse" 92 android:singleLine="true" 93 android:layout_marginBottom="10dip" 94 android:layout_marginLeft="7dip" 95 android:layout_alignParentBottom="true" 96 android:layout_toRightOf="@id/avatar" 97 android:layout_alignWithParentIfMissing="true" 98 android:layout_toLeftOf="@id/date" 99 android:ellipsize="end" /> 100 101 </com.android.mms.ui.ConversationListItem> 102