cloudstream/app/src/main/res/layout/player_custom_layout.xml

648 lines
29 KiB
XML
Raw Normal View History

2022-01-07 19:27:25 +00:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2021-08-04 01:50:24 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2022-01-07 19:27:25 +00:00
android:id="@+id/player_holder"
2021-08-04 01:50:24 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:screenOrientation="landscape"
2022-01-07 19:27:25 +00:00
tools:orientation="vertical">
2021-08-14 20:28:04 +00:00
<FrameLayout
android:id="@+id/subtitle_holder"
2021-08-04 01:50:24 +00:00
android:layout_width="match_parent"
2021-08-14 20:28:04 +00:00
android:layout_height="match_parent">
2022-01-07 19:27:25 +00:00
2021-08-14 20:28:04 +00:00
<View
2022-01-07 19:27:25 +00:00
android:id="@+id/shadow_overlay"
2021-08-14 20:28:04 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2022-01-07 19:27:25 +00:00
android:background="@color/black_overlay" />
2021-08-14 20:28:04 +00:00
</FrameLayout>
2021-05-24 11:52:44 +00:00
<!--
<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:id="@+id/video_lock_holder"
>
2021-05-23 12:10:39 +00:00
2021-05-24 11:52:44 +00:00
<FrameLayout
android:layout_margin="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:ignore="UselessParent">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_margin="20dp"
android:id="@+id/video_locked_img"
android:layout_gravity="end|center_vertical"
android:src="@drawable/video_locked">
</ImageView>
<ImageView
android:id="@+id/video_lock"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_gravity="end|center_vertical"
android:focusable="true"
android:clickable="true"
android:background="@drawable/video_tap_button_always_white">
</ImageView>
2021-05-23 12:10:39 +00:00
2021-05-24 11:52:44 +00:00
</FrameLayout>
2021-05-23 12:10:39 +00:00
</LinearLayout>
2021-05-24 11:52:44 +00:00
-->
2021-05-23 12:10:39 +00:00
<RelativeLayout
2022-01-07 19:27:25 +00:00
android:id="@+id/player_time_menu"
2021-05-23 12:10:39 +00:00
android:layout_width="match_parent"
android:layout_height="200dp"
android:orientation="horizontal"
2022-01-07 19:27:25 +00:00
app:layout_constraintBottom_toTopOf="@+id/player_center_menu"
app:layout_constraintTop_toBottomOf="@+id/topMenuRight">
2021-05-23 12:10:39 +00:00
<TextView
2022-01-07 19:27:25 +00:00
android:id="@+id/player_time_text_left"
2021-05-23 12:10:39 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="100dp"
2022-01-07 19:27:25 +00:00
android:alpha="0"
android:gravity="center|start"
2021-05-23 12:10:39 +00:00
android:shadowColor="@android:color/black"
android:shadowRadius="10.0"
android:textColor="@android:color/white"
2022-01-07 19:27:25 +00:00
android:textSize="40sp">
2021-05-23 12:10:39 +00:00
</TextView>
2022-01-07 19:27:25 +00:00
2021-05-23 12:10:39 +00:00
<TextView
2022-01-07 19:27:25 +00:00
android:id="@+id/player_time_text"
2021-05-23 12:10:39 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:shadowColor="@android:color/black"
android:shadowRadius="10.0"
android:textColor="@android:color/white"
2022-01-07 19:27:25 +00:00
android:textSize="30sp"
tools:text="+100">
2021-05-23 12:10:39 +00:00
</TextView>
2022-01-07 19:27:25 +00:00
2021-05-23 12:10:39 +00:00
<TextView
2022-01-07 19:27:25 +00:00
android:id="@+id/time_text_right"
2021-05-23 12:10:39 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginEnd="100dp"
2022-01-07 19:27:25 +00:00
android:gravity="center|end"
2021-05-23 12:10:39 +00:00
android:shadowColor="@android:color/black"
android:shadowRadius="10.0"
android:textColor="@android:color/white"
2022-01-07 19:27:25 +00:00
android:textSize="40sp" />
2021-05-23 12:10:39 +00:00
</RelativeLayout>
2022-02-11 14:04:03 +00:00
<FrameLayout
android:id="@+id/player_episode_filler_holder"
android:layout_margin="20dp"
android:layout_gravity="end"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.google.android.material.button.MaterialButton
style="@style/SmallBlackButton"
android:text="@string/filler"
android:id="@+id/player_episode_filler" />
</FrameLayout>
2021-05-23 12:10:39 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2022-01-07 19:27:25 +00:00
android:id="@+id/player_video_holder"
2021-05-23 12:10:39 +00:00
android:layout_width="match_parent"
2022-01-07 19:27:25 +00:00
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/player_top_holder"
2021-05-23 12:10:39 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-01-07 19:27:25 +00:00
<TextView
2022-01-07 19:27:25 +00:00
android:id="@+id/player_video_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_marginStart="80dp"
android:layout_marginTop="35dp"
2022-01-07 19:27:25 +00:00
android:layout_marginEnd="80dp"
android:gravity="center"
android:textColor="@color/white"
2022-01-07 19:27:25 +00:00
android:textStyle="bold"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Hello world" />
<TextView
2022-01-07 19:27:25 +00:00
android:id="@+id/player_video_title_rez"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_marginStart="80dp"
android:layout_marginTop="20dp"
2022-01-07 19:27:25 +00:00
android:layout_marginEnd="80dp"
android:gravity="center"
android:textColor="@color/white"
app:layout_constraintLeft_toLeftOf="parent"
2022-01-07 19:27:25 +00:00
app:layout_constraintTop_toBottomOf="@+id/player_video_title"
tools:text="1920x1080" />
2022-02-11 14:04:03 +00:00
2022-01-07 19:27:25 +00:00
<!-- Removed as it has no use anymore-->
<!--<androidx.mediarouter.app.MediaRouteButton
android:id="@+id/player_media_route_button"
android:layout_width="70dp"
android:layout_height="70dp"
2022-01-07 19:27:25 +00:00
android:layout_gravity="end"
android:layout_margin="5dp"
android:mediaRouteTypes="user"
android:visibility="visible"
app:layout_constraintRight_toRightOf="parent"
2022-01-07 19:27:25 +00:00
app:layout_constraintTop_toTopOf="parent" />-->
<FrameLayout
2022-01-07 19:27:25 +00:00
android:id="@+id/player_go_back_holder"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_margin="5dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
2021-05-23 12:10:39 +00:00
android:layout_gravity="center"
android:src="@drawable/ic_baseline_arrow_back_24"
app:tint="@android:color/white"
2022-01-07 19:27:25 +00:00
android:contentDescription="@string/go_back_img_des" />
2021-05-23 12:10:39 +00:00
<ImageView
2022-01-07 19:27:25 +00:00
android:id="@+id/player_go_back"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_gravity="center"
2022-01-07 19:27:25 +00:00
android:background="@drawable/video_tap_button_always_white"
android:clickable="true"
2022-01-07 19:27:25 +00:00
android:focusable="true"
android:contentDescription="@string/go_back_img_des" />
</FrameLayout>
2022-02-11 14:04:03 +00:00
2021-05-23 12:10:39 +00:00
</FrameLayout>
2021-06-10 18:21:42 +00:00
2022-01-07 19:27:25 +00:00
<!--use for thinner app:trackThickness="3dp" com.google.android.material.progressindicator.CircularProgressIndicator-->
<ProgressBar
app:layout_constraintBottom_toBottomOf="parent"
2021-05-23 12:10:39 +00:00
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
2022-01-07 19:27:25 +00:00
android:focusable="false"
android:clickable="false"
android:focusableInTouchMode="false"
android:indeterminate="true"
android:visibility="gone"
tools:visibility="visible"
android:id="@+id/player_buffering"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
<!-- This nested layout is necessary because of buffering and clicking-->
<FrameLayout
2021-05-23 12:10:39 +00:00
app:layout_constraintBottom_toBottomOf="parent"
2022-01-07 19:27:25 +00:00
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_width="100dp"
android:layout_height="100dp"
android:id="@+id/player_pause_play_holder_holder">
<FrameLayout
tools:ignore="uselessParent"
android:id="@+id/player_pause_play_holder"
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-01-29 18:57:19 +00:00
2022-01-07 19:27:25 +00:00
<ImageView
app:tint="@color/white"
android:id="@+id/player_pause_play"
android:nextFocusLeft="@id/exo_rew"
android:nextFocusRight="@id/exo_ffwd"
android:nextFocusUp="@id/player_go_back"
android:nextFocusDown="@id/player_lock"
android:layout_gravity="center"
android:src="@drawable/netflix_pause"
android:background="@drawable/video_tap_button"
android:layout_width="70dp"
android:layout_height="70dp"
tools:ignore="ContentDescription" />
</FrameLayout>
</FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/player_center_menu"
2021-05-24 08:51:16 +00:00
android:layout_width="match_parent"
android:layout_height="100dp"
2022-01-07 19:27:25 +00:00
android:layout_gravity="center"
2021-05-24 08:51:16 +00:00
android:gravity="center"
2021-05-23 12:10:39 +00:00
android:orientation="horizontal"
2022-01-07 19:27:25 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
2021-05-23 12:10:39 +00:00
<FrameLayout
android:id="@+id/player_rew_holder"
2022-01-07 19:27:25 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintWidth_percent="0.5"
android:layout_gravity="center_vertical|start"
2022-01-07 19:27:25 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/player_ffwd_holder"
app:layout_constraintTop_toTopOf="parent">
2021-05-23 12:10:39 +00:00
<TextView
android:id="@+id/exo_rew_text"
2022-01-07 19:27:25 +00:00
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:gravity="center"
2021-05-23 12:10:39 +00:00
android:textColor="@color/white"
2021-05-24 08:51:16 +00:00
android:textSize="19sp"
2021-05-24 11:52:44 +00:00
android:textStyle="bold"
2022-01-07 19:27:25 +00:00
tools:text="10" />
2021-05-24 08:51:16 +00:00
2021-05-23 12:10:39 +00:00
<ImageButton
android:id="@id/exo_rew"
2021-05-24 08:51:16 +00:00
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_gravity="center"
2021-10-31 01:17:56 +00:00
2022-01-07 19:27:25 +00:00
android:background="@drawable/video_tap_button_skip"
android:nextFocusLeft="@id/exo_rew"
android:nextFocusUp="@id/player_go_back"
android:nextFocusDown="@id/player_lock"
android:padding="10dp"
android:scaleType="fitCenter"
2022-01-07 19:27:25 +00:00
android:scaleX="-1"
android:src="@drawable/netflix_skip_forward"
app:tint="@color/white"
android:tintMode="src_in"
tools:ignore="ContentDescription" />
</FrameLayout>
2021-05-23 12:10:39 +00:00
<FrameLayout
android:id="@+id/player_ffwd_holder"
2022-01-07 19:27:25 +00:00
android:layout_width="0dp"
app:layout_constraintWidth_percent="0.5"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
2022-01-07 19:27:25 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toRightOf="@id/player_rew_holder"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
2021-05-23 12:10:39 +00:00
<TextView
android:id="@+id/exo_ffwd_text"
2022-01-07 19:27:25 +00:00
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:gravity="center"
2021-05-23 12:10:39 +00:00
android:textColor="@color/white"
2021-05-24 08:51:16 +00:00
android:textSize="19sp"
android:textStyle="bold"
2022-01-07 19:27:25 +00:00
tools:text="10" />
2021-10-09 21:59:37 +00:00
2022-01-07 19:27:25 +00:00
<ImageButton
2021-05-23 12:10:39 +00:00
android:id="@id/exo_ffwd"
2021-05-24 08:51:16 +00:00
android:layout_width="70dp"
2022-01-07 19:27:25 +00:00
android:layout_height="70dp"
android:layout_gravity="center"
2021-05-23 12:10:39 +00:00
android:background="@drawable/video_tap_button_skip"
2022-01-07 19:27:25 +00:00
android:nextFocusRight="@id/exo_rew"
android:nextFocusUp="@id/player_go_back"
android:nextFocusDown="@id/player_lock"
android:padding="10dp"
2021-05-23 12:10:39 +00:00
android:scaleType="fitCenter"
2022-01-07 19:27:25 +00:00
android:src="@drawable/netflix_skip_forward"
app:tint="@color/white"
2021-05-23 12:10:39 +00:00
android:tintMode="src_in"
2022-01-07 19:27:25 +00:00
tools:ignore="ContentDescription" />
2021-05-23 12:10:39 +00:00
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
2021-05-23 12:10:39 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_gravity="bottom"
android:layout_marginBottom="20dp"
2021-05-23 12:10:39 +00:00
android:gravity="center"
android:orientation="horizontal"
android:paddingTop="4dp"
2022-01-07 19:27:25 +00:00
android:visibility="gone"
2021-05-23 12:10:39 +00:00
app:layout_constraintBottom_toBottomOf="parent"
2022-01-07 19:27:25 +00:00
app:layout_constraintEnd_toEndOf="parent">
2021-05-23 12:10:39 +00:00
<ImageButton
android:id="@id/exo_prev"
style="@style/ExoMediaButton.Previous"
2022-01-07 19:27:25 +00:00
app:tint="?attr/colorPrimaryDark"
android:tintMode="src_in"
tools:ignore="ContentDescription" />
2021-05-23 12:10:39 +00:00
<ImageButton
android:id="@id/exo_repeat_toggle"
style="@style/ExoMediaButton"
2022-01-07 19:27:25 +00:00
app:tint="?attr/colorPrimaryDark"
android:tintMode="src_in"
tools:ignore="ContentDescription" />
2021-05-23 12:10:39 +00:00
<ImageButton
android:id="@id/exo_next"
style="@style/ExoMediaButton.Next"
2022-01-07 19:27:25 +00:00
app:tint="?attr/colorPrimaryDark"
android:tintMode="src_in"
tools:ignore="ContentDescription" />
2021-05-23 12:10:39 +00:00
<ImageButton
android:id="@id/exo_vr"
style="@style/ExoMediaButton.VR"
2022-01-07 19:27:25 +00:00
app:tint="?attr/colorPrimaryDark"
android:tintMode="src_in"
tools:ignore="ContentDescription" />
<ImageButton
android:id="@id/exo_play"
app:tint="?attr/colorPrimaryDark"
android:tintMode="src_in"
tools:ignore="ContentDescription"
android:layout_height="0dp"
android:layout_width="0dp" />
<ImageButton
android:id="@id/exo_pause"
app:tint="?attr/colorPrimaryDark"
android:tintMode="src_in"
tools:ignore="ContentDescription"
android:layout_height="0dp"
android:layout_width="0dp" />
2021-05-23 12:10:39 +00:00
</LinearLayout>
<LinearLayout
2022-01-07 19:27:25 +00:00
android:id="@+id/bottom_player_bar"
2021-05-23 12:10:39 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:gravity="center_vertical"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
2022-01-07 19:27:25 +00:00
app:layout_constraintEnd_toEndOf="parent">
2021-05-23 12:10:39 +00:00
<LinearLayout
2022-01-07 19:27:25 +00:00
android:id="@+id/player_video_bar"
2021-05-23 12:10:39 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-01-07 19:27:25 +00:00
android:orientation="horizontal">
2021-05-23 12:10:39 +00:00
<TextView
android:id="@id/exo_position"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_gravity="center"
android:layout_marginStart="20dp"
android:gravity="end"
2021-05-23 12:10:39 +00:00
android:includeFontPadding="false"
2022-01-07 19:27:25 +00:00
android:minWidth="50dp"
2021-05-23 12:10:39 +00:00
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:textColor="@android:color/white"
android:textSize="14sp"
2022-01-07 19:27:25 +00:00
android:textStyle="normal"
tools:text="15:30" />
2021-08-04 01:50:24 +00:00
<!--app:buffered_color="@color/videoCache"-->
2021-05-23 12:10:39 +00:00
<com.google.android.exoplayer2.ui.DefaultTimeBar
android:id="@id/exo_progress"
android:layout_width="0dp"
2021-05-24 08:51:16 +00:00
android:layout_height="30dp"
2021-05-23 12:10:39 +00:00
android:layout_weight="1"
2021-05-24 08:51:16 +00:00
app:bar_height="2dp"
2021-06-06 18:06:01 +00:00
app:played_color="?attr/colorPrimary"
2022-01-07 19:27:25 +00:00
app:scrubber_color="?attr/colorPrimary"
app:scrubber_dragged_size="26dp"
app:scrubber_enabled_size="24dp"
app:unplayed_color="@color/videoProgress" />
2021-05-23 12:10:39 +00:00
2021-05-28 13:38:06 +00:00
<!-- exo_duration-->
2021-05-23 12:10:39 +00:00
<TextView
android:id="@id/exo_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_gravity="center"
android:layout_marginEnd="20dp"
2021-05-23 12:10:39 +00:00
android:includeFontPadding="false"
2022-01-07 19:27:25 +00:00
android:minWidth="50dp"
2021-05-23 12:10:39 +00:00
android:paddingLeft="4dp"
android:paddingRight="4dp"
android:textColor="@android:color/white"
android:textSize="14sp"
2021-05-24 08:51:16 +00:00
android:textStyle="normal"
2022-01-07 19:27:25 +00:00
tools:text="23:20" />
2021-05-23 12:10:39 +00:00
</LinearLayout>
2022-01-07 19:27:25 +00:00
<HorizontalScrollView
android:layout_width="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_height="wrap_content"
android:layout_gravity="center">
<LinearLayout
2022-01-07 19:27:25 +00:00
android:layout_width="wrap_content"
android:layout_height="60dp"
android:gravity="center"
2022-01-07 19:27:25 +00:00
android:orientation="horizontal"
android:paddingTop="10dp"
2022-01-07 19:27:25 +00:00
android:paddingBottom="10dp">
2021-11-27 18:49:51 +00:00
<com.google.android.material.button.MaterialButton
2022-01-07 19:27:25 +00:00
android:id="@+id/player_lock"
style="@style/VideoButton"
android:nextFocusLeft="@id/player_skip_episode"
android:nextFocusRight="@id/player_resize_btt"
2021-11-27 18:49:51 +00:00
android:text="@string/video_lock"
app:icon="@drawable/video_locked"
2022-01-07 19:27:25 +00:00
app:iconSize="30dp" />
<LinearLayout
2022-01-07 19:27:25 +00:00
android:id="@+id/player_lock_holder"
2021-05-23 12:10:39 +00:00
android:layout_width="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_height="match_parent"
android:orientation="horizontal">
2021-11-27 18:49:51 +00:00
<com.google.android.material.button.MaterialButton
2022-01-07 19:27:25 +00:00
android:id="@+id/player_resize_btt"
style="@style/VideoButton"
android:nextFocusLeft="@id/player_lock"
2021-11-27 18:49:51 +00:00
2022-01-14 19:23:53 +00:00
android:nextFocusRight="@id/player_speed_btt"
2021-11-27 18:49:51 +00:00
android:text="@string/video_aspect_ratio_resize"
2022-01-07 19:27:25 +00:00
app:icon="@drawable/ic_baseline_aspect_ratio_24" />
2021-11-27 18:49:51 +00:00
<com.google.android.material.button.MaterialButton
2022-01-14 19:23:53 +00:00
android:id="@+id/player_speed_btt"
2022-01-07 19:27:25 +00:00
style="@style/VideoButton"
android:nextFocusLeft="@id/player_resize_btt"
2021-11-27 18:49:51 +00:00
2022-02-13 18:06:36 +00:00
android:nextFocusRight="@id/player_subtitle_offset_btt"
2021-11-27 18:49:51 +00:00
app:icon="@drawable/ic_baseline_speed_24"
2022-01-07 19:27:25 +00:00
tools:text="Speed" />
2021-11-27 18:49:51 +00:00
<com.google.android.material.button.MaterialButton
2022-02-13 18:06:36 +00:00
android:visibility="gone"
tools:visibility="visible"
android:id="@+id/player_subtitle_offset_btt"
2022-01-07 19:27:25 +00:00
style="@style/VideoButton"
2022-01-14 19:23:53 +00:00
android:nextFocusLeft="@id/player_speed_btt"
2021-10-09 21:59:37 +00:00
2022-02-13 18:06:36 +00:00
android:nextFocusRight="@id/player_sources_btt"
app:icon="@drawable/ic_outline_subtitles_24"
android:text="@string/subtitle_offset"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/player_sources_btt"
style="@style/VideoButton"
android:nextFocusLeft="@id/player_subtitle_offset_btt"
2022-01-07 19:27:25 +00:00
android:nextFocusRight="@id/player_skip_op"
2021-11-27 18:49:51 +00:00
android:text="@string/video_source"
2022-01-07 19:27:25 +00:00
app:icon="@drawable/ic_baseline_playlist_play_24" />
2021-11-27 18:49:51 +00:00
<com.google.android.material.button.MaterialButton
2022-01-07 19:27:25 +00:00
android:id="@+id/player_skip_op"
style="@style/VideoButton"
android:nextFocusLeft="@id/player_sources_btt"
2021-10-09 21:59:37 +00:00
2022-01-07 19:27:25 +00:00
android:nextFocusRight="@id/player_skip_episode"
2021-11-27 18:49:51 +00:00
android:text="@string/video_skip_op"
2022-01-07 19:27:25 +00:00
app:icon="@drawable/ic_baseline_fast_forward_24" />
2021-11-27 18:49:51 +00:00
<com.google.android.material.button.MaterialButton
2022-01-07 19:27:25 +00:00
android:id="@+id/player_skip_episode"
style="@style/VideoButton"
android:nextFocusLeft="@id/player_skip_op"
2021-10-09 21:59:37 +00:00
2022-01-07 19:27:25 +00:00
android:nextFocusRight="@id/player_lock"
2021-11-27 18:49:51 +00:00
android:text="@string/next_episode"
2022-01-07 19:27:25 +00:00
app:icon="@drawable/ic_baseline_skip_next_24" />
</LinearLayout>
2021-06-17 15:39:01 +00:00
</LinearLayout>
</HorizontalScrollView>
2021-05-23 12:10:39 +00:00
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
2021-05-23 12:10:39 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
2022-01-07 19:27:25 +00:00
2021-05-23 12:10:39 +00:00
<RelativeLayout
2022-01-07 19:27:25 +00:00
android:id="@+id/player_progressbar_left_holder"
android:layout_width="100dp"
android:layout_height="wrap_content"
2021-05-23 12:10:39 +00:00
android:layout_gravity="center_vertical"
2022-01-07 19:27:25 +00:00
android:gravity="start"
android:visibility="gone"
2021-05-23 12:10:39 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@+id/centerMenuView"
2022-01-07 19:27:25 +00:00
app:layout_constraintTop_toTopOf="parent"
tools:alpha="1"
tools:visibility="visible">
2021-05-23 12:10:39 +00:00
<!--VERY hacky layout -->
<ImageView
2022-01-07 19:27:25 +00:00
android:id="@+id/player_progressbar_left_icon"
2021-05-23 12:10:39 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_centerHorizontal="true"
android:layout_marginBottom="220dp"
2021-05-23 12:10:39 +00:00
android:src="@drawable/ic_baseline_volume_up_24"
app:tint="@android:color/white"
2022-01-07 19:27:25 +00:00
tools:ignore="ContentDescription">
2021-05-23 12:10:39 +00:00
</ImageView>
<ProgressBar
2022-01-07 19:27:25 +00:00
android:id="@+id/player_progressbar_left"
style="@android:style/Widget.Material.ProgressBar.Horizontal"
2021-05-23 12:10:39 +00:00
android:layout_width="4dp"
2021-05-27 20:25:33 +00:00
android:layout_height="150dp"
2022-01-07 19:27:25 +00:00
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_gravity="end|center_vertical"
android:layout_marginStart="40dp"
2021-05-23 12:10:39 +00:00
android:indeterminate="false"
android:max="100"
android:progress="100"
android:progressDrawable="@drawable/progress_drawable_vertical"
2022-01-07 19:27:25 +00:00
tools:progress="30" />
2021-05-23 12:10:39 +00:00
</RelativeLayout>
2022-01-07 19:27:25 +00:00
2021-05-23 12:10:39 +00:00
<RelativeLayout
2022-01-07 19:27:25 +00:00
android:id="@+id/player_progressbar_right_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-05-23 12:10:39 +00:00
android:layout_gravity="center_vertical"
android:gravity="right"
2022-01-07 19:27:25 +00:00
android:visibility="gone"
2021-05-23 12:10:39 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toRightOf="@+id/centerMenuView"
2022-01-07 19:27:25 +00:00
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:alpha="1"
tools:ignore="RtlHardcoded"
tools:visibility="visible">
2021-05-23 12:10:39 +00:00
<ImageView
2022-01-07 19:27:25 +00:00
android:id="@+id/player_progressbar_right_icon"
2021-05-23 12:10:39 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2022-01-07 19:27:25 +00:00
android:layout_centerHorizontal="true"
android:layout_marginBottom="220dp"
2021-05-23 12:10:39 +00:00
android:src="@drawable/ic_baseline_brightness_7_24"
app:tint="@android:color/white"
2022-01-07 19:27:25 +00:00
tools:ignore="ContentDescription">
2021-05-23 12:10:39 +00:00
</ImageView>
<ProgressBar
2022-01-07 19:27:25 +00:00
android:id="@+id/player_progressbar_right"
style="@android:style/Widget.Material.ProgressBar.Horizontal"
2021-05-23 12:10:39 +00:00
android:layout_width="4dp"
2021-05-27 20:25:33 +00:00
android:layout_height="150dp"
2022-01-07 19:27:25 +00:00
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_gravity="end|center_vertical"
android:layout_marginEnd="40dp"
2021-05-23 12:10:39 +00:00
android:indeterminate="false"
android:max="100"
android:progress="100"
2022-01-07 19:27:25 +00:00
android:progressDrawable="@drawable/progress_drawable_vertical" />
2021-05-23 12:10:39 +00:00
</RelativeLayout>
</LinearLayout>
</FrameLayout>