<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bottom_menu_border">

    <com.futo.platformplayer.views.video.FutoShortPlayer
        android:id="@+id/short_player"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/transparent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <include layout="@layout/view_short_overlay" />

    <!-- make the overlay clickable to intercept touches -->
    <FrameLayout
        android:id="@+id/short_view_loading_overlay"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#77000000"
        android:clickable="true"
        android:elevation="4dp"
        android:visibility="gone">

        <ImageView
            android:id="@+id/short_view_loader"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_gravity="center_vertical|center_horizontal"
            android:alpha="0.7"
            android:contentDescription="@string/loading"
            app:srcCompat="@drawable/ic_loader_animated" />
    </FrameLayout>
</merge>
