feat(YouTube - Loop video): Add player button to change loop video state (#5961)
This commit is contained in:
parent
6d5f6ecdd2
commit
dfb5407e67
14 changed files with 299 additions and 89 deletions
|
|
@ -0,0 +1,11 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:fillAlpha="0.6"
|
||||
android:strokeAlpha="0.6"
|
||||
android:pathData="M17.6914,2.19922 L16.9844,2.91797 L19.0625,5 L3.61719,5 C3.15625,5,2.76953,5.14844,2.46094,5.46094 C2.15234,5.76562,2,6.15234,2,6.61719 L2,10 L3,10 L3,6.61719 C3,6.43359,3.05859,6.28516,3.17188,6.17188 C3.28906,6.05859,3.4375,6,3.61719,6 L19.0703,6 L19.0703,6.00781 L16.9844,8.09375 L17.6914,8.8125 L21,5.50781 L17.6914,2.19922 Z M21,14 L21,17.3828 C21,17.5625,20.9414,17.7109,20.8281,17.8281 C20.7109,17.9414,20.5625,18,20.3828,18 L4.92969,18 L4.92969,17.9922 L7.01563,15.9023 L6.30859,15.1836 L3,18.4922 L6.30859,21.7969 L7.01563,21.0781 L4.9375,19 L20.3828,19 C20.8438,19,21.2305,18.8477,21.5391,18.5391 C21.8477,18.2305,22,17.8438,22,17.3828 L22,14 L21,14 Z" />
|
||||
</vector>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M17.6914,2.19922 L16.9844,2.91797 L19.0625,5 L3.61719,5 C3.15625,5,2.76953,5.14844,2.46094,5.46094 C2.15234,5.76562,2,6.15234,2,6.61719 L2,10 L3,10 L3,6.61719 C3,6.43359,3.05859,6.28516,3.17188,6.17188 C3.28906,6.05859,3.4375,6,3.61719,6 L19.0703,6 L19.0703,6.00781 L16.9844,8.09375 L17.6914,8.8125 L21,5.50781 L17.6914,2.19922 Z M12.7168,8.30078 L10.4609,9.28906 L10.4609,10.1152 L11.9746,9.44336 L11.9746,15.543 L12.8496,15.543 L12.8496,8.30078 L12.7168,8.30078 Z M21,14 L21,17.3828 C21,17.5625,20.9414,17.7109,20.8281,17.8281 C20.7109,17.9414,20.5625,18,20.3828,18 L4.92969,18 L4.92969,17.9922 L7.01563,15.9023 L6.30859,15.1836 L3,18.4922 L6.30859,21.7969 L7.01563,21.0781 L4.9375,19 L20.3828,19 C20.8438,19,21.2305,18.8477,21.5391,18.5391 C21.8477,18.2305,22,17.8438,22,17.3828 L22,14 L21,14 Z" />
|
||||
</vector>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.constraint.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:yt="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/youtube_controls_bottom_ui_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<com.google.android.libraries.youtube.common.ui.TouchImageView
|
||||
android:id="@+id/revanced_loop_video_button"
|
||||
style="@style/YouTubePlayerButton"
|
||||
android:layout_width="48.0dip"
|
||||
android:layout_height="60.0dip"
|
||||
android:paddingTop="6.0dp"
|
||||
android:paddingBottom="0dp"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/revanced_loop_video_button_off"
|
||||
yt:layout_constraintBottom_toTopOf="@+id/quick_actions_container"
|
||||
yt:layout_constraintRight_toLeftOf="@+id/fullscreen_button" />
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue