-
Notifications
You must be signed in to change notification settings - Fork 832
/
Copy pathitem_custom_dialog.xml
112 lines (97 loc) · 4.32 KB
/
item_custom_dialog.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@id/dialogRootLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@id/dialogContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@id/dialogAvatar"
android:layout_width="@dimen/dialog_avatar_width"
android:layout_height="@dimen/dialog_avatar_height"
android:layout_margin="16dp" />
<TextView
android:id="@id/dialogName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="19dp"
android:layout_toEndOf="@id/dialogAvatar"
android:layout_toLeftOf="@id/dialogDate"
android:layout_toRightOf="@id/dialogAvatar"
android:layout_toStartOf="@id/dialogDate"
android:ellipsize="end"
android:fontFamily="@string/font_fontFamily_medium"
android:includeFontPadding="false"
android:maxLines="1" />
<TextView
android:id="@id/dialogDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="16dp"
android:ellipsize="end"
android:maxLines="1" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/dialogName"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="7dp"
android:layout_toEndOf="@id/dialogAvatar"
android:layout_toLeftOf="@+id/dialogUnreadBubble"
android:layout_toRightOf="@id/dialogAvatar"
android:layout_toStartOf="@+id/dialogUnreadBubble">
<com.stfalcon.chatkit.utils.ShapeImageView
android:id="@id/dialogLastMessageUserAvatar"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="7dp"
android:layout_marginRight="7dp" />
<TextView
android:id="@id/dialogLastMessage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toEndOf="@id/dialogLastMessageUserAvatar"
android:layout_toRightOf="@id/dialogLastMessageUserAvatar"
android:ellipsize="end"
android:gravity="top"
android:maxLines="1" />
</RelativeLayout>
<TextView
android:id="@id/dialogUnreadBubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_below="@id/dialogDate"
android:layout_marginEnd="24dp"
android:layout_marginRight="24dp"
android:layout_marginTop="10dp"
android:background="@drawable/bubble_circle"
android:ellipsize="end"
android:fontFamily="@string/font_fontFamily_medium"
android:gravity="center"
android:lines="1" />
<FrameLayout
android:id="@id/dialogDividerContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginTop="16dp">
<View
android:id="@id/dialogDivider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/dialog_divider" />
</FrameLayout>
</RelativeLayout>
</FrameLayout>