<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/item_left"
    android:layout_width="match_parent"
    android:layout_height="@dimen/conversation_list_item_height"
    android:background="#FFFFFF"
    android:clipChildren="false"
    android:clipToPadding="false"
    android:orientation="horizontal"
    android:paddingStart="14.85dp"
    android:paddingTop="12dp">

    <CheckBox
        android:id="@+id/select_checkbox"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:layout_gravity="center_vertical"
        android:layout_marginEnd="6.23dp"
        android:background="@drawable/conversation_checkbox_selector"
        android:button="@null"
        android:visibility="gone"
        tools:visibility="visible"/>

    <RelativeLayout
        android:layout_width="60.78dp"
        android:layout_height="match_parent">

        <com.tencent.qcloud.tuikit.tuiconversation.classicui.widget.ConversationIconView
            android:id="@+id/conversation_icon"
            android:layout_width="@dimen/conversation_list_avatar_width"
            android:layout_height="@dimen/conversation_list_avatar_height" />

        <com.tencent.qcloud.tuikit.timcommon.component.UnreadCountTextView
            android:id="@+id/conversation_unread"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_alignParentEnd="true"
            android:layout_marginStart="-10dp"
            android:layout_marginTop="-8dp"
            android:gravity="center"
            android:includeFontPadding="false"
            android:textColor="#FFFFFF"
            android:textSize="11.52sp" />

        <View
            android:id="@+id/user_status"
            android:layout_width="12dp"
            android:layout_height="12dp"
            android:layout_alignParentBottom="true"
            android:layout_alignParentEnd="true"
            android:layout_marginEnd="10dp"
            android:layout_marginBottom="10dp"
            android:visibility="gone"
            android:background="?attr/user_status_offline"
            android:elevation="4dp" />

    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginStart="0dp"
        android:layout_marginTop="1.37dp">

        <TextView
            android:id="@+id/conversation_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:maxWidth="180dp"
            android:layout_alignParentStart="true"
            android:layout_alignParentTop="true"
            android:ellipsize="end"
            android:gravity="top|start"
            android:singleLine="true"
            android:textColor="@color/black_font_color"
            android:lineHeight="23.04sp"
            android:textSize="17.28sp" />

        <TextView
            android:id="@+id/conversation_time"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_alignParentEnd="true"
            android:layout_marginEnd="@dimen/conversation_list_time_margin_right"
            android:textColor="@color/conversation_item_time_color"
            android:textSize="11.52sp"
            android:lineHeight="15.84sp"/>

        <ImageView
            android:id="@+id/mark_banner"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_alignParentEnd="true"
            android:layout_marginEnd="@dimen/conversation_list_time_margin_right"
            android:src="@drawable/conversation_mark_banner"
            android:visibility="gone" />


        <RelativeLayout
            android:id="@+id/message_status_layout"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/view_line"
            android:layout_alignParentBottom="true"
            android:layout_alignParentStart="true"
            android:layout_gravity="center_vertical"
            android:gravity="center_vertical"
            android:layout_marginStart="0dp"
            android:layout_marginTop="1.37dp"
            android:visibility="gone"
            android:layout_marginBottom="@dimen/conversation_list_text_margin_bottom"
            android:layout_marginEnd="2dp">

            <ImageView
                android:id="@+id/message_status_sending"
                android:layout_width="14dp"
                android:layout_height="14dp"
                android:layout_gravity="center_vertical"
                android:background="@drawable/conversation_ic_sending_status"
                android:visibility="gone" />

            <ImageView
                android:id="@+id/message_status_failed"
                android:layout_width="14dp"
                android:layout_height="14dp"
                android:layout_gravity="center_vertical"
                android:scaleType="fitCenter"
                android:src="@drawable/conversation_ic_send_failed"
                android:visibility="gone" />
        </RelativeLayout>

        <TextView
            android:id="@+id/fold_group_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toEndOf="@id/message_status_layout"
            android:layout_alignParentBottom="true"
            android:layout_marginBottom="@dimen/conversation_list_text_margin_bottom"
            android:textSize="13.44sp"
            android:ellipsize="end"
            android:singleLine="true"
            android:textColor="@color/list_bottom_text_bg"
            tools:text="FoldGroup"/>

        <TextView
            android:id="@+id/fold_group_name_divider"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/view_line"
            android:layout_toEndOf="@id/fold_group_name"
            android:layout_alignParentBottom="true"
            android:layout_marginBottom="@dimen/conversation_list_text_margin_bottom"
            android:textSize="13.44sp"
            android:textColor="@color/list_bottom_text_bg"
            android:layout_marginEnd="4dp"
            android:text=":"/>

        <TextView
            android:id="@+id/conversation_risk"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/conversation_list_text_margin_bottom"
            android:layout_above="@+id/view_line"
            android:layout_alignParentBottom="true"
            android:layout_toEndOf="@id/fold_group_name_divider"
            android:ellipsize="end"
            android:singleLine="true"
            android:textColor="@color/read_dot_bg"
            android:textSize="13.44sp"
            android:visibility="gone"
            android:text="@string/conversation_risk_message_extra"
            tools:visibility="visible" />

        <TextView
            android:id="@+id/conversation_at_all"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/view_line"
            android:layout_alignParentBottom="true"
            android:layout_toEndOf="@id/conversation_risk"
            android:layout_marginBottom="@dimen/conversation_list_text_margin_bottom"
            android:ellipsize="end"
            android:singleLine="true"
            android:textColor="@color/read_dot_bg"
            android:textSize="13.44sp"
            android:visibility="gone"
            android:text="@string/ui_at_all"
            tools:visibility="visible"/>

        <TextView
            android:id="@+id/conversation_at_me"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/view_line"
            android:layout_toEndOf="@id/conversation_at_all"
            android:layout_alignParentBottom="true"
            android:layout_marginBottom="@dimen/conversation_list_text_margin_bottom"
            android:ellipsize="end"
            android:singleLine="true"
            android:textColor="@color/read_dot_bg"
            android:textSize="13.44sp"
            android:visibility="gone"
            android:text="@string/ui_at_me"
            tools:visibility="visible"/>

        <TextView
            android:id="@+id/conversation_draft"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/view_line"
            android:layout_toEndOf="@id/conversation_at_me"
            android:layout_alignParentBottom="true"
            android:layout_marginBottom="@dimen/conversation_list_text_margin_bottom"
            android:ellipsize="end"
            android:singleLine="true"
            android:textColor="@color/read_dot_bg"
            android:textSize="13.44sp"
            android:visibility="gone"
            android:text="@string/drafts"
            tools:visibility="visible" />

        <TextView
            android:id="@+id/conversation_last_msg"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/view_line"
            android:layout_alignParentBottom="true"
            android:layout_marginEnd="48dp"
            android:layout_marginBottom="@dimen/conversation_list_text_margin_bottom"
            android:layout_toEndOf="@+id/conversation_draft"
            android:ellipsize="end"
            android:singleLine="true"
            android:textColor="@color/list_bottom_text_bg"
            android:textSize="13.44sp"
            tools:text="MessageContent"/>

        <ImageView
            android:id="@+id/not_disturb"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/view_line"
            android:layout_alignParentEnd="true"
            android:layout_alignParentBottom="true"
            android:layout_marginEnd="@dimen/conversation_list_time_margin_right"
            android:layout_marginBottom="@dimen/conversation_list_text_margin_bottom"
            android:gravity="center"
            android:includeFontPadding="false"
            android:src="@drawable/conversation_ic_disturb"
            android:visibility="gone" />

        <View
            android:id="@+id/view_line"
            android:layout_width="match_parent"
            android:layout_height="@dimen/conversation_list_divide_line_height"
            android:layout_alignParentBottom="true"
            android:layout_marginTop="12dp"
            android:background="@color/conversation_divide_line_color" />
    </RelativeLayout>

</LinearLayout>