<?xml version="1.0" encoding="utf-8"?>
<!-- What a press of Left or Right just did, and where it lands. It sits over somebody's
     film, so it is near-black, non-focusable and centred low on the screen where the
     transport controls would be — the viewer is already looking there. It never opens the
     transport OSD: skipping is meant to cost one press, not one press plus a menu. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/player_seek_indicator"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|center_horizontal"
    android:layout_marginBottom="104dp"
    android:focusable="false"
    android:visibility="gone">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/time_remaining_cue_background"
        android:gravity="center_horizontal"
        android:orientation="vertical"
        android:paddingStart="18dp"
        android:paddingTop="12dp"
        android:paddingEnd="22dp"
        android:paddingBottom="12dp">

        <!-- The frame the skip will land on, from Emby's preview thumbnails. It is gone
             rather than blank when a title has none, or before the first one arrives: the
             chip below it is a complete answer on its own, and a thumbnail-shaped hole
             over somebody's film says only that something is missing.

             The height is what settles the size, and it is a compromise with the source:
             Emby generates these 320px wide, so 120dp is about a third larger than native
             on a 1080p set — big enough to read a scene across a room, and not so big that
             the upscaling is what the viewer notices. The width here is only the 16:9
             placeholder the chip is laid out at before the frames' real shape is known. -->
        <ImageView
            android:id="@+id/player_seek_preview"
            android:layout_width="214dp"
            android:layout_height="120dp"
            android:layout_marginBottom="12dp"
            android:background="#FF000000"
            android:contentDescription="@null"
            android:scaleType="fitCenter"
            android:visibility="gone" />

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:orientation="horizontal">

            <ImageView
                android:id="@+id/player_seek_glyph"
                android:layout_width="26dp"
                android:layout_height="26dp"
                android:contentDescription="@null"
                android:scaleType="fitCenter"
                android:src="@drawable/ic_player_forward" />

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="14dp"
                android:orientation="vertical">

                <TextView
                    android:id="@+id/player_seek_amount"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textColor="#FFFFFFFF"
                    android:textSize="18sp"
                    android:textStyle="bold"
                    tools:text="Forward 30 seconds" />

                <TextView
                    android:id="@+id/player_seek_position"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="2dp"
                    android:textColor="#99FFFFFF"
                    android:textSize="13sp"
                    tools:text="12:34 / 1:45:00" />
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>
</FrameLayout>
