1<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:app="http://schemas.android.com/apk/res-auto"
3 android:layout_width="fill_parent"
4 android:layout_height="wrap_content"
5 android:descendantFocusability="blocksDescendants">
6
7 <View
8 android:layout_width="fill_parent"
9 android:layout_height="match_parent"
10 android:background="?attr/conversations_overview_background"/>
11
12 <FrameLayout
13 android:id="@+id/swipeable_item"
14 android:layout_width="fill_parent"
15 android:layout_height="wrap_content"
16 android:background="?attr/color_background_primary">
17
18 <RelativeLayout
19 android:layout_width="fill_parent"
20 android:layout_height="wrap_content"
21 android:background="?android:selectableItemBackground"
22 android:orientation="horizontal"
23 android:padding="8dp">
24
25 <com.makeramen.roundedimageview.RoundedImageView
26 android:id="@+id/conversation_image"
27 android:layout_width="56dp"
28 android:layout_height="56dp"
29 android:layout_alignParentLeft="true"
30 android:scaleType="centerCrop"
31 app:riv_corner_radius="2dp"/>
32
33 <RelativeLayout
34 android:layout_width="fill_parent"
35 android:layout_height="wrap_content"
36 android:layout_centerVertical="true"
37 android:layout_toRightOf="@+id/conversation_image"
38 android:paddingLeft="8dp">
39
40 <android.support.text.emoji.widget.EmojiTextView
41 android:id="@+id/conversation_name"
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:layout_alignLeft="@+id/conversation_lastwrapper"
45 android:layout_toLeftOf="@+id/conversation_lastupdate"
46 android:paddingRight="4dp"
47 android:maxLines="1"
48 android:ellipsize="end"
49 android:textColor="?attr/color_text_primary"
50 android:textSize="?attr/TextSizeHeadline"
51 android:typeface="sans"/>
52
53 <RelativeLayout
54 android:id="@+id/conversation_lastwrapper"
55 android:layout_width="match_parent"
56 android:layout_height="wrap_content"
57 android:layout_below="@id/conversation_name"
58 android:layout_marginTop="4dp">
59
60 <TextView
61 android:id="@+id/sender_name"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:minHeight="?attr/IconSize"
65 android:layout_centerVertical="true"
66 android:gravity="center_vertical"
67 android:layout_alignParentLeft="true"
68 android:text="@string/me"
69 android:layout_marginRight="?attr/TextSeparation"
70 android:textColor="?attr/color_text_secondary"
71 android:visibility="visible"
72 android:textSize="?attr/TextSizeBody"/>
73
74 <LinearLayout android:layout_width="match_parent"
75 android:layout_height="wrap_content"
76 android:layout_centerVertical="true"
77 android:orientation="horizontal"
78 android:layout_toRightOf="@id/sender_name"
79 android:layout_alignWithParentIfMissing="true"
80 android:layout_toLeftOf="@+id/notification_status"
81 android:id="@+id/txt_img_wrapper">
82 <ImageView
83 android:id="@+id/conversation_lastmsg_img"
84 android:layout_width="?attr/IconSize"
85 android:layout_height="?attr/IconSize"
86 android:layout_marginRight="?attr/TextSeparation"/>
87
88 <android.support.text.emoji.widget.EmojiTextView
89 android:id="@+id/conversation_lastmsg"
90 android:layout_width="match_parent"
91 android:layout_height="wrap_content"
92 android:minHeight="?attr/IconSize"
93 android:gravity="center_vertical"
94 android:scrollHorizontally="false"
95 android:maxLines="1"
96 android:ellipsize="end"
97 android:textColor="?attr/color_text_primary"
98 android:textSize="?attr/TextSizeBody"/>
99
100 <com.makeramen.roundedimageview.RoundedImageView
101 android:id="@+id/conversation_lastimage"
102 android:layout_width="fill_parent"
103 android:layout_height="36dp"
104 android:background="@color/black87"
105 android:scaleType="centerCrop"
106 android:visibility="gone"
107 app:riv_corner_radius="2dp"/>
108 </LinearLayout>
109 <ImageView
110 android:visibility="visible"
111 android:id="@+id/notification_status"
112 android:layout_width="?attr/IconSize"
113 android:layout_height="?attr/IconSize"
114 android:layout_toLeftOf="@+id/unread_count"
115 android:layout_alignWithParentIfMissing="true"
116 android:layout_centerVertical="true"
117 android:layout_marginLeft="4dp"
118 android:alpha="?attr/icon_alpha"
119 android:src="?attr/icon_notifications"
120 />
121 <eu.siacs.conversations.ui.widget.UnreadCountCustomView
122 android:id="@+id/unread_count"
123 android:layout_width="?attr/IconSize"
124 android:layout_height="?attr/IconSize"
125 android:layout_centerVertical="true"
126 android:layout_marginLeft="3dp"
127 android:layout_marginTop="2dp"
128 android:layout_marginBottom="1dp"
129 android:visibility="gone"
130 android:layout_alignParentRight="true"
131 app:backgroundColor="?attr/unread_count" />
132
133 </RelativeLayout>
134
135 <TextView
136 android:id="@+id/conversation_lastupdate"
137 android:layout_width="wrap_content"
138 android:layout_height="wrap_content"
139 android:layout_alignBaseline="@+id/conversation_name"
140 android:layout_alignParentRight="true"
141 android:gravity="right"
142 android:textColor="?attr/color_text_secondary"
143 android:textSize="?attr/TextSizeInfo"/>
144 </RelativeLayout>
145 </RelativeLayout>
146 </FrameLayout>
147</FrameLayout>