JLChen
2021-01-04 ed86fe7ed952bb2151aac8841134246bbde152c9
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
113
114
115
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="80dp"
    android:gravity="center_vertical"
    android:paddingLeft="10dp"
    android:paddingTop="5dp"
    android:paddingRight="10dp">
 
    <CheckBox
        android:id="@+id/delete_chatroom"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:adjustViewBounds="true"
        android:button="@drawable/checkbox"
        android:clickable="false"
        android:contentDescription="@string/content_description_delete"
        android:visibility="invisible" />
 
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_centerVertical="true"
        android:orientation="horizontal">
 
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center">
 
            <include layout="@layout/contact_avatar" />
 
            <TextView
                android:id="@+id/date"
                android:textColor="?attr/accentColor"
                android:textSize="16sp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/avatar_layout"
                android:layout_marginTop="5dp"
                android:singleLine="true" />
 
        </RelativeLayout>
 
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:paddingLeft="10dp">
 
            <org.linphone.views.MarqueeTextView
                android:id="@+id/sipUri"
                style="@style/contact_name_list_cell_font"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginRight="30dp"
                android:singleLine="true"
                android:scrollHorizontally="true" />
 
            <TextView
                android:id="@+id/unreadMessages"
                style="@style/unread_count_font"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_above="@+id/lastMessageLayout"
                android:layout_alignParentEnd="true"
                android:layout_alignParentRight="true"
                android:background="@drawable/unread_message_count_bg"
                android:contentDescription="@string/content_description_unread_chat_message"
                android:gravity="center"
                android:singleLine="true"
                android:ellipsize="end"/>
 
            <LinearLayout
                android:id="@id/lastMessageLayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/sipUri"
                android:orientation="horizontal">
 
                <TextView
                    android:id="@+id/lastMessage"
                    style="@style/standard_small_text_font"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:maxLines="2" />
 
            </LinearLayout>
 
            <ImageView
                android:id="@+id/ephemeral"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:adjustViewBounds="true"
                android:layout_alignParentBottom="true"
                android:layout_alignParentRight="true"
                android:layout_marginLeft="5dp"
                android:layout_marginBottom="10dp"
                android:src="@drawable/ephemeral_messages_small_default"/>
 
        </RelativeLayout>
 
    </LinearLayout>
 
    <View
        android:id="@+id/selected_overlay"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/notification_led_color"
        android:visibility="invisible" />
 
</RelativeLayout>