2021-05-23 12:10:39 +00:00
|
|
|
<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"
|
|
|
|
>
|
|
|
|
<View android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:id="@+id/shadow_overlay"
|
|
|
|
android:background="@color/black_overlay"
|
|
|
|
/>
|
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
|
|
|
|
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"
|
2021-05-28 13:38:06 +00:00
|
|
|
android:textStyle="bold"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:textColor="@color/white"
|
|
|
|
android:id="@+id/video_title"
|
|
|
|
tools:text="Hello world"
|
|
|
|
>
|
|
|
|
</TextView>
|
2021-05-28 13:38:06 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
android:gravity="center"
|
2021-05-28 13:43:43 +00:00
|
|
|
android:layout_marginTop="0dp"
|
2021-05-28 13:38:06 +00:00
|
|
|
android:textColor="@color/white"
|
|
|
|
android:id="@+id/video_title_rez"
|
|
|
|
tools:text="1920x1080"
|
2021-05-28 13:43:43 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/video_title">
|
2021-05-28 13:38:06 +00:00
|
|
|
</TextView>
|
2021-05-24 11:52:44 +00:00
|
|
|
<!--
|
2021-05-23 12:10:39 +00:00
|
|
|
<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>
|
2021-05-24 11:52:44 +00:00
|
|
|
</LinearLayout>-->
|
2021-06-10 18:21:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
<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"
|
|
|
|
/>
|
2021-05-23 12:10:39 +00:00
|
|
|
<FrameLayout
|
2021-05-27 20:25:33 +00:00
|
|
|
android:id="@+id/video_go_back_holder2"
|
2021-05-23 12:10:39 +00:00
|
|
|
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>
|
2021-06-10 18:21:42 +00:00
|
|
|
|
2021-05-23 12:10:39 +00:00
|
|
|
<LinearLayout
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:gravity="center"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:id="@+id/centerMenu"
|
|
|
|
>
|
|
|
|
|
|
|
|
<FrameLayout android:layout_width="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:layout_height="wrap_content" tools:ignore="RtlSymmetry">
|
2021-05-23 12:10:39 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/exo_rew_text"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:text="@string/player_skip_button_text"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:textSize="19sp"
|
|
|
|
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_gravity="center"
|
2021-05-24 11:52:44 +00:00
|
|
|
android:textStyle="bold"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:gravity="center"
|
2021-05-24 08:51:16 +00:00
|
|
|
|
2021-05-24 11:52:44 +00:00
|
|
|
android:layout_width="200dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_height="40dp">
|
|
|
|
</TextView>
|
|
|
|
<ImageButton
|
2021-05-24 11:52:44 +00:00
|
|
|
android:paddingLeft="100dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:id="@id/exo_rew"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:layout_height="70dp"
|
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:padding="10dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
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"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:layout_height="100dp"
|
|
|
|
android:layout_width="100dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/video_tap_button_always_white"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:foreground="@drawable/video_play"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"/>
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_pause"
|
|
|
|
android:scaleType="fitCenter"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:layout_height="100dp"
|
|
|
|
android:layout_width="100dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/video_tap_button_always_white"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:foreground="@drawable/video_pause"
|
2021-05-23 12:10:39 +00:00
|
|
|
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"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:textSize="19sp"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_gravity="center"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:textStyle="bold"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:gravity="center"
|
2021-05-24 11:52:44 +00:00
|
|
|
android:layout_width="200dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_height="40dp">
|
|
|
|
</TextView>
|
|
|
|
<ImageButton
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:id="@id/exo_ffwd"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:layout_height="70dp"
|
|
|
|
android:layout_width="70dp"
|
|
|
|
android:padding="10dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
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"
|
2021-05-24 11:52:44 +00:00
|
|
|
android:id="@+id/video_bar"
|
2021-05-23 12:10:39 +00:00
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<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"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:gravity="end"
|
|
|
|
android:minWidth="50dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:textStyle="normal"/>
|
2021-06-06 18:06:01 +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:scrubber_enabled_size="24dp"
|
|
|
|
app:scrubber_dragged_size="26dp"
|
2021-06-06 18:06:01 +00:00
|
|
|
|
|
|
|
app:scrubber_color="?attr/colorPrimary"
|
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"
|
2021-05-24 08:51:16 +00:00
|
|
|
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
|
|
|
|
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"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:minWidth="50dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="14sp"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:textStyle="normal"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
android:layout_height="60dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:gravity="center"
|
2021-05-24 08:51:16 +00:00
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingBottom="10dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
>
|
2021-05-24 11:52:44 +00:00
|
|
|
<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"
|
2021-06-17 15:39:01 +00:00
|
|
|
tools:visibility="gone"
|
2021-05-24 11:52:44 +00:00
|
|
|
>
|
|
|
|
<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>
|
2021-06-17 15:39:01 +00:00
|
|
|
<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"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
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"
|
2021-05-23 12:10:39 +00:00
|
|
|
>
|
2021-06-17 15:39:01 +00:00
|
|
|
<LinearLayout
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
android:orientation="horizontal"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
|
|
|
>
|
2021-06-17 15:39:01 +00:00
|
|
|
<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
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
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"
|
|
|
|
|
2021-05-23 12:10:39 +00:00
|
|
|
>
|
2021-06-17 15:39:01 +00:00
|
|
|
<LinearLayout
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
>
|
2021-06-17 15:39:01 +00:00
|
|
|
<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"
|
2021-05-23 12:10:39 +00:00
|
|
|
|
2021-06-17 15:39:01 +00:00
|
|
|
>
|
|
|
|
<LinearLayout
|
2021-05-24 11:52:44 +00:00
|
|
|
android:layout_width="wrap_content"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_height="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
android:orientation="horizontal"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
|
|
|
>
|
2021-06-17 15:39:01 +00:00
|
|
|
<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"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
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"
|
2021-05-23 12:10:39 +00:00
|
|
|
>
|
2021-06-17 15:39:01 +00:00
|
|
|
<LinearLayout
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
android:orientation="horizontal"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
|
|
|
>
|
2021-06-17 15:39:01 +00:00
|
|
|
<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"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
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"
|
2021-05-23 12:10:39 +00:00
|
|
|
>
|
2021-06-17 15:39:01 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:layout_height="match_parent"
|
2021-06-17 15:39:01 +00:00
|
|
|
android:orientation="horizontal"
|
2021-05-23 12:10:39 +00:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
|
|
|
>
|
2021-06-17 15:39:01 +00:00
|
|
|
<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>
|
|
|
|
|
2021-05-23 12:10:39 +00:00
|
|
|
</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"
|
2021-05-27 20:25:33 +00:00
|
|
|
android:layout_height="150dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
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"
|
2021-05-27 20:25:33 +00:00
|
|
|
android:layout_height="150dp"
|
2021-05-23 12:10:39 +00:00
|
|
|
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>
|