<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.motion.widget.MotionLayout
    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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".activities.MainActivity"
    android:background="@color/black"
    app:layoutDescription="@xml/activity_main_scene"
    android:id="@+id/rootView">

    <androidx.fragment.app.FragmentContainerView
        android:id="@+id/fragment_top_bar"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        tools:layout="@layout/fragment_overview_top_bar" />

    <androidx.fragment.app.FragmentContainerView
        android:id="@+id/fragment_main"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintTop_toBottomOf="@id/fragment_top_bar"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        android:paddingBottom="48dp"
        tools:layout="@layout/fragment_feed" />

    <androidx.fragment.app.FragmentContainerView
        android:id="@+id/fragment_bottom_bar"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        android:layout_marginLeft="-1dp"
        android:layout_marginRight="-1dp"
        android:elevation="10dp"
        tools:layout="@layout/fragment_overview_bottom_bar" />


    <FrameLayout
        android:id="@+id/fragment_overlay_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:elevation="15dp">
        <androidx.fragment.app.FragmentContainerView
            android:id="@+id/fragment_overlay"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            tools:layout="@layout/fragview_video_detail"
            android:elevation="15dp"
            android:visibility="invisible" />
    </FrameLayout>


    <FrameLayout
        android:id="@+id/overlay_container"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintTop_toTopOf="@id/fragment_main"
        app:layout_constraintLeft_toLeftOf="@id/fragment_main"
        app:layout_constraintRight_toRightOf="@id/fragment_main"
        app:layout_constraintBottom_toBottomOf="@id/fragment_main"
        android:visibility="gone"
        android:elevation="15dp">
    </FrameLayout>

    <ImageView
        android:id="@+id/incognito_button"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:contentDescription="@string/cd_incognito_button"
        android:src="@drawable/incognito_purple"
        android:background="@drawable/background_button_round_black"
        android:scaleType="fitCenter"
        android:visibility="visible"
        android:layout_marginLeft="10dp"
        android:layout_marginBottom="10dp"
        android:padding="8dp"
        android:elevation="50dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintBottom_toTopOf="@id/toast_view" />

    <com.futo.platformplayer.views.ToastView
        android:id="@+id/toast_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="50dp"
        android:elevation="30dp"
        app:layout_constraintLeft_toLeftOf="@id/fragment_main"
        app:layout_constraintRight_toRightOf="@id/fragment_main"
        app:layout_constraintBottom_toBottomOf="@id/fragment_main" />

</androidx.constraintlayout.motion.widget.MotionLayout>
