<?xml version="1.0" encoding="utf-8"?>
<!-- The offer to jump past an episode's opening titles.

     It sits over somebody's film, so it is one control and nothing else: no panel, no
     scrim, no explanation. The bottom-end corner is where every television client puts
     this, which is most of why it needs no label saying what it is — and it clears the
     transport row's own 48dp inset and 72dp strip, so raising the controls does not put
     the two on top of each other.

     The whole view is gone rather than invisible while it has nothing to offer, because a
     button-shaped hole in the corner of a film says only that something is missing. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/player_skip_intro"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end"
    android:layout_marginEnd="48dp"
    android:layout_marginBottom="112dp"
    android:visibility="gone">

    <!-- The row is what is focusable, not the pieces in it: a remote has one idea of
         "this", and two focusable children would be two stops on the way past a single
         button. Focusable at all, unlike the timing cues and the alert bar beside it,
         because this one is meant to be pressed and focus is the only way a remote can say
         so. PlayerActivity gives it focus as it appears and hands focus back to the video
         when it goes. -->
    <LinearLayout
        android:id="@+id/player_skip_intro_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/next_up_primary_button"
        android:focusable="true"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:paddingStart="14dp"
        android:paddingTop="11dp"
        android:paddingEnd="24dp"
        android:paddingBottom="11dp">

        <!-- How long is left to press it. duplicateParentState is load-bearing: the pill
             inverts to white on focus, and without the parent's state reaching this the
             ring would keep drawing white on white. -->
        <com.ponzischeme89.memby.ui.player.SkipIntroCountdownView
            android:id="@+id/player_skip_intro_countdown"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_marginEnd="12dp"
            android:duplicateParentState="true" />

        <TextView
            android:id="@+id/player_skip_intro_label"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:duplicateParentState="true"
            android:text="@string/player_skip_intro"
            android:textColor="@color/next_up_button_text"
            android:textSize="16sp"
            android:textStyle="bold"
            tools:text="Skip intro" />
    </LinearLayout>
</FrameLayout>
