<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="@drawable/list_item_background_selectable"
	android:orientation="vertical">

	<include layout="@layout/list_item_conversation_top_notice_in" />

	<com.vanniktech.emoji.EmojiTextView
		android:id="@+id/msgText"
		style="@style/TextMessage"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:layout_marginStart="@dimen/message_bubble_margin_tail"
		android:layout_marginLeft="@dimen/message_bubble_margin_tail"
		android:layout_marginTop="@dimen/message_bubble_margin"
		android:layout_marginEnd="@dimen/message_bubble_margin_non_tail"
		android:layout_marginRight="@dimen/message_bubble_margin_non_tail"
		android:background="@drawable/msg_in_top"
		android:elevation="@dimen/message_bubble_elevation"
		android:textColor="?android:attr/textColorPrimary"
		tools:text="Short message"
		tools:visibility="visible" />

	<androidx.constraintlayout.widget.ConstraintLayout
		android:id="@+id/layout"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:layout_marginStart="@dimen/message_bubble_margin_tail"
		android:layout_marginLeft="@dimen/message_bubble_margin_tail"
		android:layout_marginEnd="@dimen/message_bubble_margin_non_tail"
		android:layout_marginRight="@dimen/message_bubble_margin_non_tail"
		android:layout_marginBottom="@dimen/message_bubble_margin"
		android:background="@drawable/notice_in_bottom"
		android:elevation="@dimen/message_bubble_elevation">

		<com.vanniktech.emoji.EmojiTextView
			android:id="@+id/text"
			style="@style/TextMessage.Notice"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			app:layout_constraintStart_toStartOf="parent"
			app:layout_constraintTop_toTopOf="parent"
			tools:text="@string/introduction_request_received" />

		<Button
			android:id="@+id/acceptButton"
			style="@style/BriarButtonFlat.Positive"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:text="@string/accept"
			app:layout_constraintEnd_toEndOf="parent"
			app:layout_constraintTop_toBottomOf="@+id/text" />

		<Button
			android:id="@+id/declineButton"
			style="@style/BriarButtonFlat.Negative"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:text="@string/decline"
			app:layout_constraintBottom_toBottomOf="@+id/acceptButton"
			app:layout_constraintEnd_toStartOf="@+id/acceptButton"
			app:layout_constraintTop_toTopOf="@+id/acceptButton" />

		<TextView
			android:id="@+id/time"
			style="@style/TextMessage.Timestamp"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			app:layout_constraintEnd_toStartOf="@+id/bomb"
			app:layout_constraintHorizontal_bias="1.0"
			app:layout_constraintHorizontal_chainStyle="packed"
			app:layout_constraintStart_toStartOf="parent"
			app:layout_constraintTop_toBottomOf="@+id/acceptButton"
			tools:text="Dec 24, 13:37" />

		<ImageView
			android:id="@+id/bomb"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginStart="4dp"
			android:layout_marginLeft="4dp"
			app:layout_constraintEnd_toEndOf="parent"
			app:layout_constraintStart_toEndOf="@+id/time"
			app:layout_constraintTop_toBottomOf="@+id/acceptButton"
			app:srcCompat="@drawable/ic_bomb"
			app:tint="?android:attr/textColorSecondary"
			tools:ignore="ContentDescription"
			tools:visibility="visible" />

	</androidx.constraintlayout.widget.ConstraintLayout>

</LinearLayout>
