• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="?android:attr/activatedBackgroundIndicator"
25    android:paddingRight="10dip" >
26
27    <android.widget.QuickContactBadge
28        android:id="@+id/avatar"
29        android:visibility="gone"
30        android:layout_centerVertical="true"
31        style="?android:attr/quickContactBadgeStyleWindowLarge" />
32
33    <TextView android:id="@+id/from"
34        android:layout_width="wrap_content"
35        android:layout_height="wrap_content"
36        android:textAppearance="?android:attr/textAppearanceMedium"
37        android:singleLine="true"
38        android:layout_marginTop="6dip"
39        android:layout_marginRight="5dip"
40        android:layout_marginLeft="10dip"
41        android:layout_alignParentTop="true"
42        android:layout_toRightOf="@id/avatar"
43        android:layout_alignWithParentIfMissing="true"
44        android:ellipsize="marquee"  />
45
46    <TextView android:id="@+id/date"
47        android:layout_marginTop="2dip"
48        android:layout_marginBottom="10dip"
49        android:layout_marginLeft="5dip"
50        android:layout_marginRight="10dip"
51        android:layout_height="wrap_content"
52        android:layout_width="wrap_content"
53        android:textAppearance="?android:attr/textAppearanceSmall"
54        android:singleLine="true"
55        android:layout_alignParentRight="true"
56        android:layout_alignParentBottom="true" />
57
58    <ImageView android:id="@+id/error"
59        android:layout_marginLeft="3dip"
60        android:visibility="invisible"
61        android:layout_toLeftOf="@id/date"
62        android:layout_alignBottom="@id/date"
63        android:layout_height="wrap_content"
64        android:layout_width="wrap_content"
65        android:src="@drawable/ic_list_alert_sms_failed" />
66
67    <ImageView android:id="@+id/attachment"
68        android:layout_marginLeft="3dip"
69        android:layout_height="wrap_content"
70        android:layout_width="wrap_content"
71        android:visibility="gone"
72        android:layout_toLeftOf="@id/error"
73        android:layout_alignBottom="@id/date"
74        android:src="@drawable/ic_attachment_universal_small" />
75
76    <TextView android:id="@+id/subject"
77        android:layout_width="wrap_content"
78        android:layout_height="wrap_content"
79        android:textAppearance="?android:attr/textAppearanceSmall"
80        android:singleLine="true"
81        android:layout_marginBottom="10dip"
82        android:layout_marginLeft="10dip"
83        android:layout_alignParentBottom="true"
84        android:layout_toRightOf="@id/avatar"
85        android:layout_alignWithParentIfMissing="true"
86        android:layout_toLeftOf="@id/date"
87        android:ellipsize="end" />
88
89</com.android.mms.ui.ConversationListItem>
90