<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
	xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:tools="http://schemas.android.com/tools"
	android:layout_width="match_parent"
	android:layout_height="wrap_content"
	android:background="?attr/selectableItemBackground"
	android:paddingLeft="@dimen/listitem_horizontal_margin"
	android:paddingStart="@dimen/listitem_horizontal_margin"
	tools:ignore="RtlSymmetry">

	<org.briarproject.briar.android.view.TextAvatarView
		android:id="@+id/avatarView"
		android:layout_width="@dimen/listitem_picture_frame_size"
		android:layout_height="@dimen/listitem_picture_frame_size"
		android:layout_alignParentLeft="true"
		android:layout_alignParentStart="true"
		android:layout_marginEnd="@dimen/listitem_horizontal_margin"
		android:layout_marginRight="@dimen/listitem_horizontal_margin"
		android:layout_marginTop="@dimen/listitem_horizontal_margin"/>

	<org.thoughtcrime.securesms.components.emoji.EmojiTextView
		android:id="@+id/nameView"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_alignParentTop="true"
		android:layout_marginTop="@dimen/listitem_horizontal_margin"
		android:layout_toEndOf="@+id/avatarView"
		android:layout_toRightOf="@+id/avatarView"
		android:maxLines="2"
		android:textColor="?android:attr/textColorPrimary"
		android:textSize="@dimen/text_size_medium"
		tools:text="This is a name of a Private Group"/>

	<org.thoughtcrime.securesms.components.emoji.EmojiTextView
		android:id="@+id/creatorView"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_below="@+id/nameView"
		android:layout_marginBottom="@dimen/margin_small"
		android:layout_toEndOf="@+id/avatarView"
		android:layout_toRightOf="@+id/avatarView"
		android:paddingTop="@dimen/margin_small"
		android:textColor="?android:attr/textColorSecondary"
		android:textSize="@dimen/text_size_small"
		tools:text="Created by Santa Claus"/>

	<TextView
		android:id="@+id/messageCountView"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_below="@+id/creatorView"
		android:layout_marginBottom="@dimen/margin_small"
		android:layout_toEndOf="@+id/avatarView"
		android:layout_toRightOf="@+id/avatarView"
		android:paddingTop="@dimen/margin_small"
		android:textColor="?android:attr/textColorSecondary"
		android:textSize="@dimen/text_size_small"
		tools:text="1337 messages"
		tools:visibility="visible"/>

	<TextView
		android:id="@+id/dateView"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_alignParentEnd="true"
		android:layout_alignParentRight="true"
		android:layout_below="@+id/creatorView"
		android:layout_marginEnd="@dimen/listitem_horizontal_margin"
		android:layout_marginRight="@dimen/listitem_horizontal_margin"
		android:paddingTop="@dimen/margin_small"
		android:textColor="?android:attr/textColorSecondary"
		android:textSize="@dimen/text_size_small"
		tools:text="3 weeks ago, 12:00"
		tools:visibility="visible"/>

	<TextView
		android:id="@+id/statusView"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_below="@+id/messageCountView"
		android:layout_toEndOf="@+id/avatarView"
		android:layout_toLeftOf="@+id/removeButton"
		android:layout_toRightOf="@+id/avatarView"
		android:paddingTop="@dimen/margin_small"
		android:textColor="?android:attr/textColorTertiary"
		tools:text="@string/groups_group_is_empty"/>

	<Button
		android:id="@+id/removeButton"
		style="@style/BriarButtonFlat.Negative"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_alignBottom="@+id/divider"
		android:layout_alignParentRight="true"
		android:text="@string/groups_remove"
		tools:visibility="gone"/>

	<View
		android:id="@+id/divider"
		style="@style/Divider.ThreadItem"
		android:layout_alignParentLeft="true"
		android:layout_alignParentStart="true"
		android:layout_below="@+id/statusView"
		android:layout_marginTop="@dimen/listitem_horizontal_margin"/>

</RelativeLayout>

