<?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"
	xmlns:tools="http://schemas.android.com/tools"
	android:layout_width="match_parent"
	android:layout_height="match_parent">

	<Spinner
		android:id="@+id/spinner_branches"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_alignParentStart="true"
		android:layout_alignParentTop="true"
		android:layout_alignParentEnd="true"
		android:visibility="gone"
		tools:listitem="@layout/item_branch"
		tools:visibility="visible" />

	<androidx.recyclerview.widget.RecyclerView
		android:id="@+id/recyclerView_chapters"
		android:layout_width="0dp"
		android:layout_height="0dp"
		android:layout_alignWithParentIfMissing="true"
		android:layout_below="@id/spinner_branches"
		android:layout_alignParentStart="true"
		android:layout_alignParentEnd="true"
		android:layout_alignParentBottom="true"
		android:clipToPadding="false"
		android:orientation="vertical"
		android:scrollbarStyle="outsideOverlay"
		app:fastScrollEnabled="true"
		app:fastScrollHorizontalThumbDrawable="@drawable/list_thumb"
		app:fastScrollHorizontalTrackDrawable="@drawable/list_track"
		app:fastScrollVerticalThumbDrawable="@drawable/list_thumb"
		app:fastScrollVerticalTrackDrawable="@drawable/list_track"
		app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
		tools:listitem="@layout/item_chapter" />

	<com.google.android.material.progressindicator.CircularProgressIndicator
		android:id="@+id/progressBar"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_centerInParent="true"
		android:indeterminate="true"
		android:layout_gravity="center"
		android:visibility="gone"
		tools:visibility="visible" />

</RelativeLayout>