<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?android:attr/selectableItemBackground"
    android:paddingStart="@dimen/screen_edge_left_and_right_padding"
    android:paddingTop="@dimen/chat_item_top_and_bottom_padding"
    android:paddingEnd="@dimen/screen_edge_left_and_right_padding"
    android:paddingBottom="@dimen/chat_item_top_and_bottom_padding">

    <com.facebook.drawee.view.SimpleDraweeView
        android:id="@+id/image_avatar"
        android:layout_width="48dp"
        android:layout_height="48dp"
        android:layout_marginTop="5dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:roundedCornerRadius="4dp" />

    <ImageView
        android:id="@+id/image_chat_icon"
        android:layout_width="12dp"
        android:layout_height="0dp"
        android:layout_marginStart="16dp"
        app:layout_constraintBottom_toBottomOf="@+id/text_chat_name"
        app:layout_constraintStart_toEndOf="@+id/image_avatar"
        app:layout_constraintTop_toTopOf="@+id/text_chat_name"
        tools:src="@drawable/ic_hashtag_12dp" />

    <TextView
        android:id="@+id/text_chat_name"
        style="@style/ChatList.ChatName.TextView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/text_view_drawable_padding"
        android:textDirection="locale"
        app:layout_constraintEnd_toStartOf="@+id/text_timestamp"
        app:layout_constraintStart_toEndOf="@+id/image_chat_icon"
        app:layout_constraintTop_toTopOf="parent"
        tools:text="Margaret Hanson" />

    <TextView
        android:id="@+id/text_timestamp"
        style="@style/ChatList.Timestamp.TextView"
        android:layout_width="wrap_content"
        android:layout_height="0dp"
        android:textDirection="locale"
        app:layout_constraintBaseline_toBaselineOf="@+id/text_chat_name"
        app:layout_constraintEnd_toEndOf="parent"
        tools:text="11:45 AM" />

    <TextView
        android:id="@+id/text_last_message"
        style="@style/ChatList.LastMessage.TextView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="2dp"
        android:layout_marginEnd="12dp"
        android:textDirection="locale"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@+id/layout_unread_messages_badge"
        app:layout_constraintStart_toStartOf="@+id/image_chat_icon"
        app:layout_constraintTop_toBottomOf="@+id/text_chat_name"
        tools:text="Filipe de Lima Brito: Type something that is very big and need at least to lines, or maybe even more" />

    <include
        android:id="@+id/layout_unread_messages_badge"
        layout="@layout/unread_messages_badge"
        android:layout_width="21dp"
        android:layout_height="21dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@+id/text_last_message" />

</androidx.constraintlayout.widget.ConstraintLayout>