<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
    tools:context=".BrowserActivity">

    <com.google.android.material.appbar.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <mozilla.components.browser.toolbar.BrowserToolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:background="#aaaaaa" />

        <mozilla.components.feature.findinpage.view.FindInPageBar
            android:id="@+id/findInPage"
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:background="#FFFFFFFF"
            android:elevation="10dp"
            android:padding="4dp"
            android:visibility="gone"
            app:findInPageNoMatchesTextColor="@color/photonRed50" />

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

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_behavior="@string/appbar_scrolling_view_behavior">

        <mozilla.components.ui.widgets.VerticalSwipeRefreshLayout
            android:id="@+id/swipeToRefresh"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <mozilla.components.concept.engine.EngineView
                tools:ignore="Instantiatable"
                android:id="@+id/engineView"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />
        </mozilla.components.ui.widgets.VerticalSwipeRefreshLayout>

        <org.mozilla.samples.browser.awesomebar.AwesomeBarWrapper
            android:id="@+id/awesomeBar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="4dp"
            android:visibility="gone" />

        <mozilla.components.feature.readerview.view.ReaderViewControlsBar
            android:id="@+id/readerViewBar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:background="#FFFFFFFF"
            android:elevation="10dp"
            android:paddingBottom="55dp"
            android:visibility="gone" />

        <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/readerViewAppearanceButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|bottom"
            android:layout_marginLeft="16dp"
            android:layout_marginRight="16dp"
            android:layout_marginBottom="72dp"
            android:src="@drawable/mozac_ic_reader_view_24"
            android:visibility="gone"
            tools:ignore="ContentDescription" />

    </FrameLayout>

</androidx.coordinatorlayout.widget.CoordinatorLayout>
