<?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:id="@+id/linearLayout4"
	android:layout_width="match_parent"
	android:layout_height="wrap_content"
	android:background="?attr/selectableItemBackground"
	android:clickable="true"
	android:focusable="true">

	<FrameLayout
		android:id="@+id/avatarFrameView"
		android:layout_width="@dimen/listitem_picture_frame_size"
		android:layout_height="@dimen/listitem_picture_frame_size"
		android:layout_margin="@dimen/listitem_horizontal_margin"
		app:layout_constraintBottom_toTopOf="@+id/divider"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toTopOf="parent">

		<de.hdodenhof.circleimageview.CircleImageView
			android:id="@+id/avatarView"
			style="@style/BriarAvatar"
			android:layout_width="@dimen/listitem_picture_size"
			android:layout_height="@dimen/listitem_picture_size"
			android:layout_gravity="bottom|left|start"
			tools:src="@mipmap/ic_launcher_round" />

	</FrameLayout>

	<TextView
		android:id="@+id/unreadCountView"
		android:layout_width="wrap_content"
		android:layout_height="@dimen/unread_bubble_size"
		android:background="@drawable/bubble"
		android:gravity="center"
		android:minWidth="@dimen/unread_bubble_size"
		android:textColor="@color/briar_text_primary_inverse"
		android:textSize="@dimen/unread_bubble_text_size"
		android:textStyle="bold"
		app:layout_constraintEnd_toEndOf="@+id/avatarFrameView"
		app:layout_constraintTop_toTopOf="@+id/avatarFrameView"
		tools:text="123" />

	<com.vanniktech.emoji.EmojiTextView
		android:id="@+id/nameView"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_marginStart="@dimen/margin_medium"
		android:layout_marginLeft="@dimen/margin_medium"
		android:layout_marginTop="@dimen/listitem_vertical_margin"
		android:layout_marginEnd="@dimen/margin_medium"
		android:layout_marginRight="@dimen/margin_medium"
		android:paddingStart="@dimen/margin_medium"
		android:paddingEnd="@dimen/margin_medium"
		android:textColor="?android:attr/textColorPrimary"
		android:textSize="@dimen/text_size_medium"
		app:layout_constraintBottom_toTopOf="@+id/dateView"
		app:layout_constraintEnd_toStartOf="@+id/bulbView"
		app:layout_constraintStart_toEndOf="@+id/avatarFrameView"
		app:layout_constraintTop_toTopOf="parent"
		app:layout_constraintVertical_chainStyle="packed"
		tools:text="This is a name of a contact" />

	<TextView
		android:id="@+id/dateView"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_marginStart="@dimen/margin_medium"
		android:layout_marginLeft="@dimen/margin_medium"
		android:layout_marginEnd="@dimen/margin_medium"
		android:layout_marginRight="@dimen/margin_medium"
		android:layout_marginBottom="@dimen/listitem_vertical_margin"
		android:paddingStart="@dimen/margin_medium"
		android:paddingEnd="@dimen/margin_medium"
		android:textColor="?android:attr/textColorSecondary"
		android:textSize="@dimen/text_size_small"
		app:layout_constraintBottom_toTopOf="@+id/divider"
		app:layout_constraintEnd_toStartOf="@+id/bulbView"
		app:layout_constraintStart_toEndOf="@+id/avatarFrameView"
		app:layout_constraintTop_toBottomOf="@+id/nameView"
		tools:text="Dec 24" />

	<ImageView
		android:id="@+id/bulbView"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_margin="@dimen/listitem_horizontal_margin"
		app:layout_constraintBottom_toBottomOf="parent"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintTop_toTopOf="parent"
		tools:ignore="ContentDescription"
		tools:src="@drawable/contact_connected" />

	<View
		android:id="@+id/divider"
		style="@style/Divider.ContactList"
		android:layout_width="0dp"
		app:layout_constraintBottom_toBottomOf="parent"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="@+id/nameView" />

</androidx.constraintlayout.widget.ConstraintLayout>