<?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"
	android:id="@+id/title_container"
	android:layout_width="wrap_content"
	android:layout_height="match_parent"
	android:layout_gravity="center_vertical"
	android:background="?attr/selectableItemBackgroundBorderless">

	<ch.threema.app.ui.AvatarView
		android:id="@+id/avatar_view"
		android:layout_width="@dimen/compose_title_avatar_size"
		android:layout_height="@dimen/compose_title_avatar_size"
		android:layout_alignParentLeft="true"
		android:layout_centerVertical="true"
		android:layout_marginRight="16dp"
		android:contentDescription="@string/threema_contact"/>

	<LinearLayout
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_centerVertical="true"
		android:layout_alignWithParentIfMissing="true"
		android:layout_toRightOf="@id/avatar_view"
		android:orientation="vertical">

		<ch.threema.app.emojis.EmojiTextView
			android:id="@+id/title"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_gravity="left"
			android:ellipsize="end"
			android:singleLine="true"
			android:textAppearance="@style/Threema.TextAppearance.Toolbar.Title"
			android:text="Title"
			android:includeFontPadding="false"/>

		<FrameLayout
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_gravity="left">

			<ch.threema.app.ui.VerificationLevelImageView
				android:id="@+id/subtitle_image"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_marginTop="2dp"
				android:layout_marginBottom="1dp"
				app:srcCompat="@drawable/ic_verification_none"
				android:visibility="gone"/>

			<ch.threema.app.emojis.EmojiTextView
				android:id="@+id/subtitle_text"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:ellipsize="end"
				android:singleLine="true"
				android:text="Subtitle"
				android:textAppearance="@style/Threema.TextAppearance.Toolbar.SubTitle"
				android:visibility="gone"/>

		</FrameLayout>
	</LinearLayout>
</RelativeLayout>
