2021-05-22 22:25:56 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-01-24 18:59:55 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-05-22 22:25:56 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2022-01-24 18:59:55 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2021-05-22 22:25:56 +00:00
|
|
|
android:layout_width="match_parent"
|
2021-09-03 22:46:29 +00:00
|
|
|
android:layout_height="match_parent"
|
2021-05-22 22:25:56 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:keepScreenOn="true"
|
2022-01-07 19:27:25 +00:00
|
|
|
android:id="@+id/player_background"
|
2021-05-22 22:25:56 +00:00
|
|
|
app:backgroundTint="@android:color/black"
|
|
|
|
android:background="@android:color/black"
|
2021-10-10 16:18:57 +00:00
|
|
|
android:screenOrientation="sensorLandscape"
|
2022-01-24 18:59:55 +00:00
|
|
|
app:surface_type="texture_view">
|
2021-08-14 17:31:27 +00:00
|
|
|
<!--
|
|
|
|
app:fastforward_increment="10000"
|
|
|
|
app:rewind_increment="10000"-->
|
2021-05-22 22:25:56 +00:00
|
|
|
<com.google.android.exoplayer2.ui.PlayerView
|
|
|
|
android:id="@+id/player_view"
|
|
|
|
app:show_timeout="0"
|
|
|
|
app:hide_on_touch="false"
|
|
|
|
app:auto_show="true"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-04-09 21:24:52 +00:00
|
|
|
app:backgroundTint="@android:color/black"
|
|
|
|
android:background="@android:color/black"
|
2021-05-22 22:25:56 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2022-01-24 18:59:55 +00:00
|
|
|
app:controller_layout_id="@layout/player_custom_layout" />
|
2021-06-11 13:33:30 +00:00
|
|
|
|
2021-05-22 22:25:56 +00:00
|
|
|
<FrameLayout
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-01-07 19:27:25 +00:00
|
|
|
android:id="@+id/player_loading_overlay"
|
2021-05-22 22:25:56 +00:00
|
|
|
android:background="@android:color/black"
|
2022-01-24 18:59:55 +00:00
|
|
|
android:backgroundTint="@android:color/black">
|
2021-05-22 22:25:56 +00:00
|
|
|
|
2021-06-11 13:33:30 +00:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2022-01-07 19:27:25 +00:00
|
|
|
tools:visibility="visible"
|
|
|
|
android:visibility="gone"
|
2021-06-11 13:33:30 +00:00
|
|
|
android:layout_marginTop="70dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
app:cornerRadius="4dp"
|
|
|
|
android:id="@+id/overlay_loading_skip_button"
|
|
|
|
android:text="@string/skip_loading"
|
|
|
|
|
|
|
|
app:rippleColor="?attr/colorPrimary"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
app:iconTint="?attr/textColor"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
app:icon="@drawable/ic_baseline_skip_next_24"
|
|
|
|
android:backgroundTint="@color/transparent"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
android:layout_width="wrap_content"
|
2022-01-24 18:59:55 +00:00
|
|
|
android:layout_height="45dp" />
|
2021-06-11 13:33:30 +00:00
|
|
|
|
2021-05-22 22:25:56 +00:00
|
|
|
<ProgressBar
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_gravity="center"
|
2022-01-24 18:59:55 +00:00
|
|
|
android:id="@+id/main_load" />
|
2021-06-11 13:33:30 +00:00
|
|
|
|
2021-05-22 22:25:56 +00:00
|
|
|
<FrameLayout
|
2021-09-03 22:46:29 +00:00
|
|
|
android:id="@+id/video_go_back_holder_holder"
|
2021-05-22 22:25:56 +00:00
|
|
|
android:layout_margin="5dp"
|
2021-06-11 13:33:30 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-05-22 22:25:56 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
android:layout_width="wrap_content"
|
2022-01-24 18:59:55 +00:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2021-05-22 22:25:56 +00:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:src="@drawable/ic_baseline_arrow_back_24"
|
2021-06-11 13:33:30 +00:00
|
|
|
app:tint="@android:color/white"
|
2022-01-24 18:59:55 +00:00
|
|
|
android:contentDescription="@string/go_back_img_des" />
|
|
|
|
|
2021-05-22 22:25:56 +00:00
|
|
|
<ImageView
|
2022-01-07 19:27:25 +00:00
|
|
|
android:id="@+id/player_loading_go_back"
|
2021-06-11 13:33:30 +00:00
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_height="70dp"
|
2021-05-22 22:25:56 +00:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:focusable="true"
|
|
|
|
android:clickable="true"
|
2022-01-24 18:59:55 +00:00
|
|
|
android:background="@drawable/video_tap_button_always_white"
|
2022-01-29 18:57:19 +00:00
|
|
|
android:contentDescription="@string/go_back_img_des" />
|
2021-05-22 22:25:56 +00:00
|
|
|
</FrameLayout>
|
|
|
|
</FrameLayout>
|
2022-01-24 18:59:55 +00:00
|
|
|
|
2021-08-30 17:11:04 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:visibility="gone"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
android:id="@+id/player_torrent_info"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
android:gravity="start"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:id="@+id/video_torrent_progress"
|
2022-01-24 18:59:55 +00:00
|
|
|
tools:text="78% at 18kb/s" />
|
|
|
|
|
2021-08-30 17:11:04 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
android:gravity="start"
|
|
|
|
android:layout_marginTop="0dp"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:id="@+id/video_torrent_seeders"
|
|
|
|
tools:text="17 seeders"
|
2022-01-24 18:59:55 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/player_video_title" />
|
2021-08-30 17:11:04 +00:00
|
|
|
</FrameLayout>
|
2021-05-22 22:25:56 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|