• 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.ConversationHeaderView xmlns:android="http://schemas.android.com/apk/res/android"
22    android:layout_width="fill_parent"
23    android:layout_height="?android:attr/listPreferredItemHeight"
24    android:paddingRight="10dip" >
25
26    <android.widget.QuickContactBadge
27        android:id="@+id/avatar"
28        android:visibility="gone"
29        android:layout_marginLeft="7dip"
30        android:layout_centerVertical="true"
31        style="@*android:style/Widget.QuickContactBadge.WindowSmall" />
32
33    <ImageView
34        android:id="@+id/presence"
35        android:visibility="gone"
36        android:layout_width="wrap_content"
37        android:layout_height="wrap_content"
38        android:layout_marginRight="5dip"
39        android:layout_alignParentRight="true"
40        android:layout_centerVertical="true"
41        android:paddingBottom="20dip"
42         />
43
44    <TextView android:id="@+id/from"
45        android:layout_width="wrap_content"
46        android:layout_height="wrap_content"
47        android:textAppearance="?android:attr/textAppearanceMedium"
48        android:singleLine="true"
49        android:layout_marginTop="6dip"
50        android:layout_marginRight="5dip"
51        android:layout_marginLeft="7dip"
52        android:layout_alignParentTop="true"
53        android:layout_toRightOf="@id/avatar"
54        android:layout_toLeftOf="@id/presence"
55        android:layout_alignWithParentIfMissing="true"
56        android:ellipsize="marquee"  />
57
58    <TextView android:id="@+id/date"
59        android:layout_marginTop="2dip"
60        android:layout_marginBottom="10dip"
61        android:layout_marginLeft="5dip"
62        android:layout_height="wrap_content"
63        android:layout_width="wrap_content"
64        android:textAppearance="?android:attr/textAppearanceSmall"
65        android:textColor="?android:attr/textColorSecondary"
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/textAppearanceSmall"
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.ConversationHeaderView>
102