<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/reader_layout"
    android:layout_width="match_parent"
    tools:background="@color/color_button_default"
    android:layout_height="match_parent"
    android:gravity="center">


    <FrameLayout
        android:id="@+id/viewer_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:descendantFocusability="blocksDescendants" />

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

    <eu.kanade.tachiyomi.ui.reader.PageIndicatorTextView
        android:id="@+id/page_number"
        style="?textAppearanceBodySmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center_horizontal"
        android:padding="4dp"
        android:textStyle="bold" />

    <eu.kanade.tachiyomi.ui.reader.ReaderColorFilterView
        android:id="@+id/color_overlay"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone" />

    <eu.kanade.tachiyomi.ui.reader.ReaderNavigationOverlayView
        android:id="@+id/navigation_overlay"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone" />

    <FrameLayout
        android:id="@+id/app_bar"
        tools:background="?attr/colorSurface"
        android:layout_width="match_parent"
        android:visibility="gone"
        tools:visibility="visible"
        android:layout_height="wrap_content">

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            app:navigationContentDescription="@string/close"
            android:layout_height="?attr/actionBarSize"
            tools:title="Chapter 3"
            tools:subtitle="Chapter name"
            app:titleTextColor="?actionBarTintColor"
            app:subtitleTextColor="@color/action_bar_tint_alpha"
            android:background="@drawable/reader_toolbar_ripple" />
    </FrameLayout>

    <View
        android:id="@+id/touch_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        />

    <FrameLayout
        android:id="@+id/nav_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="6dp"
        android:layout_marginEnd="6dp"
        android:paddingBottom="6dp"
        app:layout_anchorGravity="top"
        android:layout_gravity="top"
        app:layout_anchor="@id/chapters_sheet" >

        <include layout="@layout/reader_nav"
            android:id="@+id/reader_nav" />
    </FrameLayout>

    <include layout="@layout/reader_chapters_sheet"
        android:id="@+id/chapters_sheet"/>

    <View
        android:id="@+id/brightness_overlay"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>
