mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
822 lines
38 KiB
XML
822 lines
38 KiB
XML
<FrameLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:id="@+id/player_holder"
|
|
android:screenOrientation="landscape"
|
|
tools:orientation="vertical"
|
|
>
|
|
<FrameLayout
|
|
android:id="@+id/subtitle_holder"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/shadow_overlay"
|
|
android:background="@color/black_overlay"
|
|
/>
|
|
</FrameLayout>
|
|
|
|
<!--
|
|
<LinearLayout android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:id="@+id/video_lock_holder"
|
|
>
|
|
|
|
<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>
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
-->
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
android:id="@+id/timeMenu"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintTop_toBottomOf="@+id/topMenuRight"
|
|
app:layout_constraintBottom_toTopOf="@+id/centerMenu"
|
|
>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/timeTextLeft"
|
|
android:gravity="center|start"
|
|
android:textSize="40sp"
|
|
android:alpha="0"
|
|
android:layout_marginStart="100dp"
|
|
android:shadowColor="@android:color/black"
|
|
android:shadowRadius="10.0"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
|
|
</TextView>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/timeText"
|
|
android:gravity="center"
|
|
android:textSize="30sp"
|
|
android:alpha="0"
|
|
android:shadowColor="@android:color/black"
|
|
android:shadowRadius="10.0"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
|
|
</TextView>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/timeTextRight"
|
|
android:gravity="center|end"
|
|
android:layout_marginEnd="100dp"
|
|
android:textSize="40sp"
|
|
android:shadowColor="@android:color/black"
|
|
android:shadowRadius="10.0"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
</TextView>
|
|
</RelativeLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/video_holder"
|
|
>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
android:gravity="center"
|
|
android:layout_marginTop="15dp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/white"
|
|
android:id="@+id/video_title"
|
|
tools:text="Hello world"
|
|
>
|
|
</TextView>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
android:gravity="center"
|
|
android:layout_marginTop="0dp"
|
|
android:textColor="@color/white"
|
|
android:id="@+id/video_title_rez"
|
|
tools:text="1920x1080"
|
|
app:layout_constraintTop_toBottomOf="@+id/video_title">
|
|
</TextView>
|
|
<!--
|
|
<LinearLayout
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
android:gravity="end"
|
|
android:layout_margin="5dp"
|
|
android:paddingEnd="60dp"
|
|
android:paddingStart="60dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/topMenuRight"
|
|
>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/next_episode_btt"
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="150dp"
|
|
android:layout_height="40dp"
|
|
android:layout_margin="15dp"
|
|
card_view:cardCornerRadius="2dp"
|
|
android:foreground="@drawable/outline_card"
|
|
card_view:cardBackgroundColor="@color/black_overlay"
|
|
card_view:cardElevation="0dp"
|
|
>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="@string/next_episode"
|
|
android:gravity="start|center"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:layout_gravity="center"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
</TextView>
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/exo_controls_next"
|
|
android:layout_gravity="right|center"
|
|
android:paddingEnd="10dp"
|
|
android:paddingStart="10dp"
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
</ImageView>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>-->
|
|
|
|
|
|
<androidx.mediarouter.app.MediaRouteButton
|
|
android:layout_margin="5dp"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:id="@+id/player_media_route_button"
|
|
android:layout_width="70dp"
|
|
android:layout_height="70dp"
|
|
android:mediaRouteTypes="user"
|
|
android:visibility="visible"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
/>
|
|
<FrameLayout
|
|
android:id="@+id/video_go_back_holder2"
|
|
android:layout_margin="5dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
>
|
|
<ImageView
|
|
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"
|
|
>
|
|
</ImageView>
|
|
<ImageView
|
|
android:id="@+id/video_go_back"
|
|
android:layout_width="70dp"
|
|
android:layout_height="70dp"
|
|
android:layout_gravity="center"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:background="@drawable/video_tap_button_always_white">
|
|
</ImageView>
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="100dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:layout_gravity="center"
|
|
android:id="@+id/centerMenu"
|
|
>
|
|
|
|
<FrameLayout android:layout_width="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_height="wrap_content" tools:ignore="RtlSymmetry">
|
|
<TextView
|
|
android:id="@+id/exo_rew_text"
|
|
android:textColor="@color/white"
|
|
android:text="@string/player_skip_button_text"
|
|
android:textSize="19sp"
|
|
|
|
android:layout_gravity="center"
|
|
android:textStyle="bold"
|
|
android:gravity="center"
|
|
|
|
android:layout_width="200dp"
|
|
android:layout_height="40dp">
|
|
</TextView>
|
|
<ImageButton
|
|
android:paddingLeft="100dp"
|
|
android:id="@id/exo_rew"
|
|
android:layout_height="70dp"
|
|
android:layout_width="70dp"
|
|
android:layout_gravity="center"
|
|
android:padding="10dp"
|
|
android:background="@drawable/video_tap_button_skip"
|
|
android:src="@drawable/netflix_skip_back"
|
|
android:scaleType="fitCenter"
|
|
android:tintMode="src_in"
|
|
|
|
/>
|
|
</FrameLayout>
|
|
|
|
<!-- style="@style/ExoMediaButton.Play"
|
|
android:background="?android:selectableItemBackgroundBorderless"
|
|
-->
|
|
<ImageButton
|
|
android:id="@id/exo_play"
|
|
android:scaleType="fitCenter"
|
|
android:layout_height="100dp"
|
|
android:layout_width="100dp"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/video_tap_button_always_white"
|
|
android:foreground="@drawable/video_play"
|
|
android:clickable="true"
|
|
android:focusable="true"/>
|
|
<ImageButton
|
|
android:id="@id/exo_pause"
|
|
android:scaleType="fitCenter"
|
|
android:layout_height="100dp"
|
|
android:layout_width="100dp"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/video_tap_button_always_white"
|
|
android:foreground="@drawable/video_pause"
|
|
android:clickable="true"
|
|
android:focusable="true"/>
|
|
|
|
|
|
<FrameLayout android:layout_width="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:id="@+id/exo_ffwd_text"
|
|
android:textColor="@color/white"
|
|
android:text="@string/player_skip_button_text"
|
|
android:textSize="19sp"
|
|
android:layout_gravity="center"
|
|
android:textStyle="bold"
|
|
android:gravity="center"
|
|
android:layout_width="200dp"
|
|
android:layout_height="40dp">
|
|
</TextView>
|
|
<ImageButton
|
|
android:layout_gravity="center"
|
|
android:id="@id/exo_ffwd"
|
|
android:layout_height="70dp"
|
|
android:layout_width="70dp"
|
|
android:padding="10dp"
|
|
android:background="@drawable/video_tap_button_skip"
|
|
android:src="@drawable/netflix_skip_forward"
|
|
android:scaleType="fitCenter"
|
|
android:tintMode="src_in"
|
|
/>
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_marginBottom="20dp"
|
|
android:visibility="gone"
|
|
android:layout_gravity="bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="4dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
>
|
|
|
|
<ImageButton
|
|
android:id="@id/exo_prev"
|
|
style="@style/ExoMediaButton.Previous"
|
|
android:tint="?attr/colorPrimaryDark"
|
|
android:tintMode="src_in"/>
|
|
|
|
|
|
<ImageButton
|
|
android:id="@id/exo_repeat_toggle"
|
|
style="@style/ExoMediaButton"
|
|
android:tint="?attr/colorPrimaryDark"
|
|
android:tintMode="src_in"/>
|
|
|
|
|
|
<ImageButton
|
|
android:id="@id/exo_next"
|
|
style="@style/ExoMediaButton.Next"
|
|
android:tint="?attr/colorPrimaryDark"
|
|
android:tintMode="src_in"/>
|
|
|
|
<ImageButton
|
|
android:id="@id/exo_vr"
|
|
style="@style/ExoMediaButton.VR"
|
|
android:tint="?attr/colorPrimaryDark"
|
|
android:tintMode="src_in"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
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"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:id="@+id/bottom_player_bar">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:id="@+id/video_bar"
|
|
>
|
|
|
|
|
|
<TextView
|
|
tools:text="15:30"
|
|
android:layout_marginStart="20dp"
|
|
android:id="@id/exo_position"
|
|
android:layout_gravity="center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:includeFontPadding="false"
|
|
android:paddingLeft="4dp"
|
|
android:paddingRight="4dp"
|
|
android:gravity="end"
|
|
android:minWidth="50dp"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp"
|
|
android:textStyle="normal"/>
|
|
<!--app:buffered_color="@color/videoCache"-->
|
|
<com.google.android.exoplayer2.ui.DefaultTimeBar
|
|
android:id="@id/exo_progress"
|
|
android:layout_width="0dp"
|
|
android:layout_height="30dp"
|
|
android:layout_weight="1"
|
|
app:scrubber_enabled_size="24dp"
|
|
app:scrubber_dragged_size="26dp"
|
|
|
|
app:scrubber_color="?attr/colorPrimary"
|
|
app:bar_height="2dp"
|
|
app:played_color="?attr/colorPrimary"
|
|
app:unplayed_color="@color/videoProgress"/>
|
|
|
|
<!-- exo_duration-->
|
|
<TextView
|
|
tools:text="23:20"
|
|
android:id="@id/exo_duration"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:includeFontPadding="false"
|
|
android:paddingLeft="4dp"
|
|
android:paddingRight="4dp"
|
|
android:minWidth="50dp"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp"
|
|
android:textStyle="normal"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_gravity="center"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center"
|
|
android:paddingTop="10dp"
|
|
android:paddingBottom="10dp"
|
|
>
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
card_view:cardCornerRadius="@dimen/card_corner_radius"
|
|
card_view:cardBackgroundColor="@color/transparent"
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
android:id="@+id/lock_player"
|
|
card_view:cardElevation="0dp"
|
|
tools:visibility="gone"
|
|
>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
>
|
|
<ImageView
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:id="@+id/video_locked_img"
|
|
android:src="@drawable/video_locked"
|
|
app:tint="@android:color/white"
|
|
android:layout_gravity="center">
|
|
|
|
</ImageView>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="Lock"
|
|
android:gravity="center"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:textSize="10sp"
|
|
android:textStyle="bold"
|
|
android:layout_gravity="center"
|
|
android:id="@+id/video_locked_text"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<LinearLayout android:id="@+id/lock_holder" android:orientation="horizontal"
|
|
android:layout_width="wrap_content" android:layout_height="match_parent">
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
card_view:cardCornerRadius="@dimen/card_corner_radius"
|
|
card_view:cardBackgroundColor="@color/transparent"
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
card_view:cardElevation="0dp"
|
|
android:id="@+id/resize_player"
|
|
tools:visibility="gone"
|
|
>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
>
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/ic_baseline_aspect_ratio_24"
|
|
app:tint="@android:color/white"
|
|
android:layout_gravity="center">
|
|
|
|
</ImageView>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="Resize"
|
|
android:gravity="center"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:textSize="10sp"
|
|
android:textStyle="bold"
|
|
android:layout_gravity="center"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
app:cardCornerRadius="@dimen/card_corner_radius"
|
|
app:cardBackgroundColor="@color/transparent"
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
android:id="@+id/playback_speed_btt"
|
|
app:cardElevation="0dp"
|
|
|
|
>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
>
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/ic_baseline_speed_24"
|
|
app:tint="@android:color/white"
|
|
>
|
|
|
|
</ImageView>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:text="Speed"
|
|
android:gravity="center"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
android:id="@+id/player_speed_text"
|
|
android:layout_gravity="center"
|
|
|
|
android:textSize="10sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
card_view:cardCornerRadius="@dimen/card_corner_radius"
|
|
card_view:cardBackgroundColor="@color/transparent"
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
android:id="@+id/sources_btt"
|
|
card_view:cardElevation="0dp"
|
|
|
|
>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
>
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/ic_baseline_playlist_play_24"
|
|
app:tint="@android:color/white"
|
|
android:layout_gravity="center">
|
|
|
|
</ImageView>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="Source"
|
|
android:gravity="center"
|
|
android:paddingStart="10dp"
|
|
|
|
android:textSize="10sp"
|
|
android:textStyle="bold"
|
|
android:paddingEnd="10dp"
|
|
android:layout_gravity="center"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
card_view:cardCornerRadius="@dimen/card_corner_radius"
|
|
card_view:cardBackgroundColor="@color/transparent"
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
card_view:cardElevation="0dp"
|
|
|
|
android:id="@+id/skip_op"
|
|
>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
>
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/exo_controls_fastforward"
|
|
app:tint="@android:color/white"
|
|
android:layout_gravity="center">
|
|
</ImageView>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="Skip OP"
|
|
android:gravity="start|center"
|
|
android:paddingStart="10dp"
|
|
|
|
android:textSize="10sp"
|
|
android:textStyle="bold"
|
|
android:paddingEnd="10dp"
|
|
android:layout_gravity="center"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
</TextView>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
card_view:cardCornerRadius="@dimen/card_corner_radius"
|
|
card_view:cardBackgroundColor="@color/transparent"
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
card_view:cardElevation="0dp"
|
|
android:id="@+id/skip_episode"
|
|
>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="10dp"
|
|
android:paddingEnd="10dp"
|
|
>
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/ic_baseline_skip_next_24"
|
|
app:tint="@android:color/white"
|
|
android:layout_gravity="center">
|
|
</ImageView>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="Next Episode"
|
|
|
|
android:gravity="start|center"
|
|
android:paddingStart="10dp"
|
|
|
|
android:textSize="10sp"
|
|
android:textStyle="bold"
|
|
android:paddingEnd="10dp"
|
|
android:layout_gravity="center"
|
|
android:textColor="@android:color/white"
|
|
>
|
|
</TextView>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<View android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/brightness_overlay"
|
|
android:background="@android:color/black"
|
|
android:alpha="0"
|
|
/>
|
|
<View android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/click_overlay"
|
|
android:visibility="gone"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
<RelativeLayout
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="left"
|
|
tools:alpha="1"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toLeftOf="@+id/centerMenuView"
|
|
android:id="@+id/progressBarLeftHolder"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0"
|
|
>
|
|
<!--VERY hacky layout -->
|
|
<ImageView
|
|
android:layout_marginBottom="220dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_baseline_volume_up_24"
|
|
app:tint="@android:color/white"
|
|
>
|
|
|
|
</ImageView>
|
|
|
|
<ProgressBar
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_width="4dp"
|
|
android:layout_height="150dp"
|
|
android:id="@+id/progressBarLeft"
|
|
android:indeterminate="false"
|
|
style="@android:style/Widget.Material.ProgressBar.Horizontal"
|
|
android:max="100"
|
|
android:layout_marginStart="40dp"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:progress="100"
|
|
android:progressDrawable="@drawable/progress_drawable_vertical"
|
|
>
|
|
|
|
|
|
</ProgressBar>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="right"
|
|
tools:alpha="1"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintLeft_toRightOf="@+id/centerMenuView"
|
|
android:id="@+id/progressBarRightHolder"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0"
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
<ImageView
|
|
android:layout_marginBottom="220dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_baseline_brightness_7_24"
|
|
app:tint="@android:color/white"
|
|
>
|
|
|
|
</ImageView>
|
|
|
|
<ProgressBar
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_width="4dp"
|
|
android:layout_height="150dp"
|
|
android:id="@+id/progressBarRight"
|
|
android:indeterminate="false"
|
|
style="@android:style/Widget.Material.ProgressBar.Horizontal"
|
|
android:max="100"
|
|
android:layout_marginEnd="40dp"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:progress="100"
|
|
android:progressDrawable="@drawable/progress_drawable_vertical"
|
|
>
|
|
</ProgressBar>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</FrameLayout>
|