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:singleLine="true"
48 android:text="Awesome groupchat"
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
87 <android.support.text.emoji.widget.EmojiTextView
88 android:id="@+id/conversation_lastmsg"
89 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
91 android:minHeight="?attr/IconSize"
92 android:gravity="center_vertical"
93 android:scrollHorizontally="false"
94 android:singleLine="true"
95 android:text="This is a placeholder text to show the last messages"
96 android:textColor="?attr/color_text_primary"
97 android:textSize="?attr/TextSizeBody"/>
98
99 <com.makeramen.roundedimageview.RoundedImageView
100 android:id="@+id/conversation_lastimage"
101 android:layout_width="fill_parent"
102 android:layout_height="36dp"
103 android:background="@color/black87"
104 android:scaleType="centerCrop"
105 android:visibility="gone"
106 app:riv_corner_radius="2dp"/>
107 </LinearLayout>
108 <ImageView
109 android:visibility="visible"
110 android:id="@+id/notification_status"
111 android:layout_width="?attr/IconSize"
112 android:layout_height="?attr/IconSize"
113 android:layout_toLeftOf="@+id/unread_count"
114 android:layout_alignWithParentIfMissing="true"
115 android:layout_centerVertical="true"
116 android:layout_marginLeft="4dp"
117 android:alpha="?attr/icon_alpha"
118 android:src="?attr/icon_notifications"
119 />
120 <eu.siacs.conversations.ui.widget.UnreadCountCustomView
121 android:id="@+id/unread_count"
122 android:layout_width="?attr/IconSize"
123 android:layout_height="?attr/IconSize"
124 android:layout_centerVertical="true"
125 android:layout_marginLeft="3dp"
126 android:layout_marginTop="2dp"
127 android:layout_marginBottom="1dp"
128 android:visibility="gone"
129 android:layout_alignParentRight="true"
130 app:backgroundColor="?attr/unread_count" />
131
132 </RelativeLayout>
133
134 <TextView
135 android:id="@+id/conversation_lastupdate"
136 android:layout_width="wrap_content"
137 android:layout_height="wrap_content"
138 android:layout_alignBaseline="@+id/conversation_name"
139 android:layout_alignParentRight="true"
140 android:gravity="right"
141 android:text="23:42"
142 android:textColor="?attr/color_text_secondary"
143 android:textSize="?attr/TextSizeInfo"/>
144 </RelativeLayout>
145 </RelativeLayout>
146 </FrameLayout>
147</FrameLayout>