<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout
	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/drawer"
	android:layout_width="match_parent"
	android:layout_height="match_parent"
	tools:context=".main.ui.MainActivity">

	<androidx.coordinatorlayout.widget.CoordinatorLayout
		android:layout_width="match_parent"
		android:layout_height="match_parent">

		<com.google.android.material.appbar.AppBarLayout
			android:id="@+id/appbar"
			style="@style/Widget.Kotatsu.AppBar"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			app:elevation="0dp">

			<com.google.android.material.appbar.MaterialToolbar
				android:id="@id/toolbar"
				style="@style/Widget.Kotatsu.Toolbar"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				app:layout_scrollFlags="scroll|enterAlways" />

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

		<androidx.fragment.app.FragmentContainerView
			android:id="@id/container"
			android:layout_width="match_parent"
			android:layout_height="match_parent"
			app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" />

		<com.google.android.material.floatingactionbutton.FloatingActionButton
			android:id="@+id/fab"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_margin="16dp"
			android:contentDescription="@string/_continue"
			android:src="@drawable/ic_read_fill"
			android:visibility="gone"
			app:backgroundTint="?colorAccent"
			app:fabSize="normal"
			app:layout_anchor="@id/container"
			app:layout_anchorGravity="bottom|end"
			app:layout_behavior="com.google.android.material.behavior.HideBottomViewOnScrollBehavior"
			app:layout_dodgeInsetEdges="bottom"
			tools:visibility="visible" />

	</androidx.coordinatorlayout.widget.CoordinatorLayout>

	<com.google.android.material.navigation.NavigationView
		android:id="@+id/navigationView"
		android:layout_width="wrap_content"
		android:layout_height="match_parent"
		android:layout_gravity="start"
		app:insetForeground="@android:color/transparent"
		app:menu="@menu/nav_drawer" />

</androidx.drawerlayout.widget.DrawerLayout>