2022-01-18 00:24:23 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-03-29 21:50:07 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-08-31 19:58:26 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/player_background"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/black"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:screenOrientation="sensorLandscape"
|
|
|
|
app:backgroundTint="@android:color/black"
|
|
|
|
app:surface_type="texture_view">
|
2022-01-18 00:24:23 +00:00
|
|
|
<!--
|
|
|
|
app:fastforward_increment="10000"
|
|
|
|
app:rewind_increment="10000"-->
|
2023-07-31 23:25:28 +00:00
|
|
|
<androidx.media3.ui.PlayerView
|
2022-08-31 19:58:26 +00:00
|
|
|
android:id="@+id/player_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2023-01-16 22:49:59 +00:00
|
|
|
android:focusable="false"
|
2022-08-31 19:58:26 +00:00
|
|
|
app:auto_show="true"
|
|
|
|
app:controller_layout_id="@layout/player_custom_layout_tv"
|
|
|
|
app:hide_on_touch="false"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:show_timeout="0" />
|
2022-01-18 00:24:23 +00:00
|
|
|
|
|
|
|
<FrameLayout
|
2022-08-31 19:58:26 +00:00
|
|
|
android:id="@+id/player_loading_overlay"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/black"
|
|
|
|
android:backgroundTint="@android:color/black"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2022-01-18 00:24:23 +00:00
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2022-08-31 19:58:26 +00:00
|
|
|
android:id="@+id/overlay_loading_skip_button"
|
|
|
|
style="@style/VideoButtonTV"
|
2022-01-18 12:17:36 +00:00
|
|
|
|
2022-08-31 19:58:26 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="70dp"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:nextFocusLeft="@id/player_loading_go_back"
|
|
|
|
android:nextFocusUp="@id/player_loading_go_back"
|
|
|
|
android:text="@string/skip_loading"
|
2022-01-18 00:24:23 +00:00
|
|
|
|
2022-08-31 19:58:26 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
app:icon="@drawable/ic_baseline_skip_next_24"
|
|
|
|
tools:visibility="visible" />
|
2022-01-18 00:24:23 +00:00
|
|
|
|
|
|
|
<ProgressBar
|
2022-08-31 19:58:26 +00:00
|
|
|
android:id="@+id/main_load"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_gravity="center" />
|
2022-01-18 00:24:23 +00:00
|
|
|
|
|
|
|
<FrameLayout
|
2022-08-31 19:58:26 +00:00
|
|
|
android:id="@+id/video_go_back_holder_holder"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2022-03-29 21:50:07 +00:00
|
|
|
|
2022-01-18 00:24:23 +00:00
|
|
|
<ImageView
|
2022-08-31 19:58:26 +00:00
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:src="@drawable/ic_baseline_arrow_back_24"
|
|
|
|
app:tint="@android:color/white" />
|
2022-03-29 21:50:07 +00:00
|
|
|
|
2022-01-18 00:24:23 +00:00
|
|
|
<ImageView
|
2023-07-25 19:15:10 +00:00
|
|
|
android:tag="@string/tv_no_focus_tag"
|
2022-08-31 19:58:26 +00:00
|
|
|
android:id="@+id/player_loading_go_back"
|
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_height="70dp"
|
2022-01-18 12:17:36 +00:00
|
|
|
|
2022-08-31 19:58:26 +00:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/video_tap_button_always_white"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:nextFocusRight="@id/overlay_loading_skip_button"
|
|
|
|
android:nextFocusDown="@id/overlay_loading_skip_button" />
|
2022-01-18 00:24:23 +00:00
|
|
|
</FrameLayout>
|
|
|
|
</FrameLayout>
|
2022-03-29 21:50:07 +00:00
|
|
|
|
2023-07-25 19:15:10 +00:00
|
|
|
<!--<FrameLayout
|
2022-08-31 19:58:26 +00:00
|
|
|
android:id="@+id/player_torrent_info"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2022-01-18 00:24:23 +00:00
|
|
|
|
|
|
|
<TextView
|
2022-08-31 19:58:26 +00:00
|
|
|
android:id="@+id/video_torrent_progress"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:gravity="start"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="78% at 18kb/s" />
|
2022-03-29 21:50:07 +00:00
|
|
|
|
2022-01-18 00:24:23 +00:00
|
|
|
<TextView
|
2022-08-31 19:58:26 +00:00
|
|
|
android:id="@+id/video_torrent_seeders"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="0dp"
|
|
|
|
android:gravity="start"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/player_video_title"
|
|
|
|
tools:text="17 seeders" />
|
2023-07-25 19:15:10 +00:00
|
|
|
</FrameLayout>-->
|
2022-01-18 00:24:23 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|