<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    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:descendantFocusability="blocksDescendants"
    android:paddingRight="@dimen/chat_bubble_container_padding_left_right"
    android:paddingBottom="@dimen/chat_bubble_container_padding_bottom">

    <com.google.android.material.card.MaterialCardView
        style="@style/Threema.CardView.Bubble.Send"
        android:id="@+id/message_block">

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="@dimen/chat_bubble_margin_end"
            android:paddingRight="@dimen/chat_bubble_margin_start"
            android:orientation="vertical">

            <ch.threema.app.emojis.EmojiConversationTextView
                style="@style/Threema.Bubble.Text.Body.Deleted"
                android:id="@+id/text_view"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:autoLink="none"
                android:ellipsize="end"
                android:gravity="center_horizontal"
                android:text="@string/message_was_deleted"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintBottom_toTopOf="@id/date_view" />

            <TextView
                style="@style/Threema.Bubble.Text.Footer.Deleted"
                android:id="@+id/date_view"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_gravity="bottom|right"
                android:layout_marginTop="2dp"
                android:layout_marginBottom="1dp"
                android:ellipsize="none"
                android:singleLine="true"
                tools:text="17:20 PM"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintRight_toRightOf="parent" />

            <ImageView
                android:id="@+id/star_icon"
                app:srcCompat="@drawable/ic_star_golden_24dp"
                android:layout_width="18dp"
                android:layout_height="18dp"
                android:padding="3dp"
                android:layout_gravity="center_vertical"
                android:visibility="gone"
                android:contentDescription="@string/starred_message"
                tools:visibility="visible"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintRight_toLeftOf="@id/date_view"/>

        </androidx.constraintlayout.widget.ConstraintLayout>

    </com.google.android.material.card.MaterialCardView>

</RelativeLayout>
