<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/selectable_contact_item"
    android:layout_width="match_parent"
    android:layout_height="58.5dp"
    android:background="#FFFFFF"
    android:focusable="true"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:paddingStart="15.36dp"
        android:paddingEnd="15.36dp">

        <RelativeLayout
            android:layout_width="45dp"
            android:layout_height="@dimen/contact_avatar_width">

            <com.tencent.qcloud.tuikit.timcommon.component.gatherimage.ShadeImageView
                android:id="@+id/ivAvatar"
                android:layout_width="@dimen/contact_avatar_width"
                android:layout_height="@dimen/contact_avatar_height"
                android:clickable="false"
                android:focusable="false" />

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

        </RelativeLayout>

        <RelativeLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:paddingStart="11.5dp">

            <TextView
                android:id="@+id/tvCity"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentStart="true"
                android:layout_centerInParent="true"
                android:clickable="false"
                android:ellipsize="end"
                android:focusable="false"
                android:lineHeight="23.04sp"
                android:singleLine="true"
                android:textColor="@color/black_font_color"
                android:textSize="17.28sp"
                tools:text="Friend" />

            <com.tencent.qcloud.tuikit.timcommon.component.UnreadCountTextView
                android:id="@+id/conversation_unread"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_centerInParent="true"
                android:layout_marginEnd="24dp"
                android:gravity="center"
                android:includeFontPadding="false"
                android:textColor="#fff"
                android:textSize="10sp" />

        </RelativeLayout>

        <CheckBox
            android:id="@+id/contact_check_box"
            android:layout_width="18dp"
            android:layout_height="18dp"
            android:layout_marginStart="10dp"
            android:layout_marginEnd="10dp"
            android:background="@drawable/contact_checkbox_selector"
            android:button="@null"
            android:clickable="false"
            android:focusable="false"
            android:visibility="gone"
            tools:visibility="visible"/>
    </LinearLayout>

    <View
        android:id="@+id/view_line"
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:layout_alignParentBottom="true"
        android:background="@color/split_lint_color"
        android:paddingStart="15.36dp"
        android:paddingEnd="15.36dp" />

</RelativeLayout>