<?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:padding="8dp">

    <ImageView
        android:id="@+id/messageAvatarImageView"
        android:layout_width="44dp"
        android:layout_height="44dp"
        android:layout_marginStart="8dp"
        android:layout_marginTop="4dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:src="@tools:sample/avatars" />

    <TextView
        android:id="@+id/messageMemberNameView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_marginStart="8dp"
        android:layout_marginTop="4dp"
        android:layout_marginEnd="4dp"
        android:ellipsize="end"
        android:maxLines="1"
        android:textColor="?riotx_text_primary"
        android:textSize="15sp"
        android:textStyle="bold"
        app:layout_constraintEnd_toStartOf="@+id/messageTimeView"
        app:layout_constraintStart_toEndOf="@+id/messageAvatarImageView"
        app:layout_constraintTop_toTopOf="parent"
        tools:text="@sample/matrix.json/data/displayName" />

    <TextView
        android:id="@+id/messageTimeView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/messageMemberNameView"
        android:layout_marginStart="8dp"
        android:layout_marginEnd="8dp"
        android:textColor="?riotx_text_secondary"
        android:textSize="12sp"
        app:layout_constraintBottom_toBottomOf="@+id/messageMemberNameView"
        app:layout_constraintEnd_toEndOf="parent"
        tools:text="@tools:sample/date/hhmm" />

    <TextView
        android:id="@+id/messageContentView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="4dp"
        android:layout_marginEnd="8dp"
        android:layout_marginBottom="4dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="@+id/messageMemberNameView"
        app:layout_constraintTop_toBottomOf="@+id/messageMemberNameView"
        tools:text="@sample/matrix.json/data/message" />

</androidx.constraintlayout.widget.ConstraintLayout>