Files
memby/app/src/main/res/layout/player_cast_overlay.xml
T

91 lines
3.6 KiB
XML
Raw Normal View History

2026-07-29 15:26:40 +12:00
<?xml version="1.0" encoding="utf-8"?>
2026-08-06 22:33:56 +12:00
<!-- The cast panel. It covers the bottom of somebody's film, so it is a fade rather than a
card: the scrim carries the names and the scene stays legible above them. The paddings
match the transport row's 48dp side inset, so opening this does not shift the column
the title and controls are read in. -->
2026-07-29 15:26:40 +12:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/player_cast_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
2026-08-06 22:33:56 +12:00
android:background="@drawable/player_cast_scrim"
2026-07-29 15:26:40 +12:00
android:clickable="true"
2026-08-06 22:33:56 +12:00
android:clipChildren="false"
2026-07-29 15:26:40 +12:00
android:focusable="true"
android:visibility="gone">
<LinearLayout
android:layout_width="match_parent"
2026-08-06 22:33:56 +12:00
android:layout_height="wrap_content"
2026-07-29 15:26:40 +12:00
android:layout_gravity="bottom"
2026-08-06 22:33:56 +12:00
android:clipChildren="false"
android:clipToPadding="false"
2026-07-29 15:26:40 +12:00
android:orientation="vertical"
android:paddingStart="48dp"
2026-08-06 22:33:56 +12:00
android:paddingTop="20dp"
2026-07-29 15:26:40 +12:00
android:paddingEnd="48dp"
2026-08-06 22:33:56 +12:00
android:paddingBottom="34dp">
2026-07-29 15:26:40 +12:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:letterSpacing="0.14"
2026-08-06 22:33:56 +12:00
android:text="@string/player_cast_eyebrow"
2026-07-29 15:26:40 +12:00
android:textColor="#FF52B54B"
android:textSize="11sp"
android:textStyle="bold" />
2026-08-06 22:33:56 +12:00
<!-- The title, not the word "Cast". The eyebrow above already says what the panel
is, and a viewer who opened this mid-scene wants confirmation of what they are
watching more than a heading repeating the button they just pressed. -->
2026-07-29 15:26:40 +12:00
<TextView
2026-08-06 22:33:56 +12:00
android:id="@+id/player_cast_title"
android:layout_width="match_parent"
2026-07-29 15:26:40 +12:00
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
2026-08-06 22:33:56 +12:00
android:ellipsize="end"
android:maxLines="1"
2026-07-29 15:26:40 +12:00
android:textColor="#FFFFFFFF"
2026-08-06 22:33:56 +12:00
android:textSize="26sp"
2026-07-29 15:26:40 +12:00
android:textStyle="bold" />
<TextView
android:id="@+id/player_cast_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2026-08-06 22:33:56 +12:00
android:layout_marginTop="14dp"
2026-07-29 15:26:40 +12:00
android:text="@string/player_cast_loading"
android:textColor="#AFFFFFFF"
android:textSize="14sp" />
<HorizontalScrollView
2026-08-06 22:33:56 +12:00
android:id="@+id/player_cast_scroller"
2026-07-29 15:26:40 +12:00
android:layout_width="match_parent"
2026-08-06 22:33:56 +12:00
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:clipChildren="false"
2026-07-29 15:26:40 +12:00
android:clipToPadding="false"
2026-08-06 22:33:56 +12:00
android:overScrollMode="never"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:scrollbars="none">
2026-07-29 15:26:40 +12:00
<LinearLayout
android:id="@+id/player_cast_people"
android:layout_width="wrap_content"
2026-08-06 22:33:56 +12:00
android:layout_height="wrap_content"
android:clipChildren="false"
2026-07-29 15:26:40 +12:00
android:gravity="top"
android:orientation="horizontal" />
</HorizontalScrollView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2026-08-06 22:33:56 +12:00
android:layout_marginTop="16dp"
android:letterSpacing="0.08"
2026-07-29 15:26:40 +12:00
android:text="@string/player_back_to_close"
2026-08-06 22:33:56 +12:00
android:textColor="#6EFFFFFF"
android:textSize="11sp" />
2026-07-29 15:26:40 +12:00
</LinearLayout>
</FrameLayout>