<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
												 xmlns:app="http://schemas.android.com/apk/res-auto"
												 android:id="@+id/main_content"
												 android:layout_width="match_parent"
												 android:layout_height="match_parent"
												 android:fitsSystemWindows="true">

	<com.google.android.material.appbar.AppBarLayout
			android:id="@+id/appbar"
			android:layout_width="match_parent"
			android:layout_height="@dimen/contact_detail_avatar_height"
			android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
			android:importantForAccessibility="no"
			android:fitsSystemWindows="true">

		<com.google.android.material.appbar.CollapsingToolbarLayout
				android:id="@+id/collapsing_toolbar"
				android:layout_width="match_parent"
				android:layout_height="match_parent"
				app:layout_scrollFlags="scroll|exitUntilCollapsed"
				android:importantForAccessibility="no"
				android:fitsSystemWindows="true"
				app:contentScrim="?attr/colorAccent">

			<ch.threema.app.ui.AvatarEditView
				android:id="@+id/avatar_edit_view"
				android:layout_width="match_parent"
				android:layout_height="match_parent"
				android:fitsSystemWindows="true"
				android:importantForAccessibility="no"
				android:contentDescription="@string/profile_picture"
				app:layout_collapseMode="parallax"/>

			<ch.threema.app.emojis.EmojiEditText
				android:id="@+id/group_title"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:layout_gravity="bottom|left"
				android:layout_marginLeft="16dp"
				android:layout_marginRight="16dp"
				android:layout_marginBottom="32dp"
				android:textAppearance="@style/Threema.TextAppearance.DetailTitle"
				android:background="@drawable/bubble_compose_dark_outline"
				app:layout_anchor="@id/appbar"
				app:layout_anchorGravity="bottom|left"
				android:maxLines="1"
				android:singleLine="true"
				android:scrollHorizontally="true"
				/>

			<View
				android:layout_width="match_parent"
				android:layout_height="16dp"
				android:layout_gravity="bottom"
				android:background="@drawable/shape_detail"/>

			<androidx.appcompat.widget.Toolbar
					android:id="@+id/toolbar"
					android:layout_width="match_parent"
					android:layout_height="?attr/actionBarSize"
					app:popupTheme="@style/Threema.PopupTheme.TransparentStatusbar"
					app:layout_collapseMode="pin">

				<LinearLayout
						android:id="@+id/action_done"
						android:layout_width="wrap_content"
						android:layout_height="match_parent"
						android:gravity="center_vertical"
						android:orientation="horizontal"
						android:clickable="true"
						android:focusable="true"
						android:background="?attr/selectableItemBackgroundBorderless"
						android:divider="?android:attr/dividerVertical"
						android:dividerPadding="12dip"
						android:showDividers="middle">

					<ImageView
						app:srcCompat="@drawable/ic_check"
						android:contentDescription="@string/menu_done"
						style="@style/Done.ActionButtonImage"
						app:tint="@android:color/white" />

					<TextView
							android:text="@string/menu_done"
							android:layout_height="wrap_content"
							android:layout_width="wrap_content"
							android:layout_marginLeft="4dp"
							android:layout_marginRight="4dp"
							android:textAppearance="?android:attr/actionMenuTextAppearance"
							android:textColor="@android:color/white"
							android:orientation="horizontal"
							android:singleLine="true"
							android:ellipsize="none"
							android:padding="4dp"
							/>

				</LinearLayout>
			</androidx.appcompat.widget.Toolbar>
		</com.google.android.material.appbar.CollapsingToolbarLayout>

	</com.google.android.material.appbar.AppBarLayout>

	<androidx.recyclerview.widget.RecyclerView
		android:id="@+id/group_members_list"
		android:layout_width="match_parent"
		android:layout_height="match_parent"
		android:layout_marginLeft="16dp"
		android:layout_marginRight="16dp"
		android:importantForAccessibility="no"
		app:layout_behavior="@string/appbar_scrolling_view_behavior" />

	<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
		android:id="@+id/floating"
		android:layout_height="wrap_content"
		android:layout_width="wrap_content"
		app:layout_anchor="@id/group_members_list"
		app:layout_anchorGravity="bottom|right|end"
		app:icon="@drawable/ic_person_add_outline"
		android:text="@string/add_group_members"
		android:layout_marginRight="@dimen/tablet_standard_padding_left_right"
		android:layout_marginBottom="16dp"
		android:contentDescription="@string/add_group_members"
		android:clickable="true" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>
