From e9e59fbc1f8cbf197ddc5a79c92d734d974502df Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 7 Feb 2023 20:34:07 +0100 Subject: [PATCH] New Autoplay switch design --- app/src/main/res/drawable/ic_play_circle.xml | 12 ++++++++++++ app/src/main/res/drawable/player_switch_thumb.xml | 6 ++++++ app/src/main/res/drawable/player_switch_track.xml | 12 ++++++++++++ .../res/layout/exo_styled_player_control_view.xml | 12 ++++++++---- 4 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/drawable/ic_play_circle.xml create mode 100644 app/src/main/res/drawable/player_switch_thumb.xml create mode 100644 app/src/main/res/drawable/player_switch_track.xml diff --git a/app/src/main/res/drawable/ic_play_circle.xml b/app/src/main/res/drawable/ic_play_circle.xml new file mode 100644 index 000000000..12d82e684 --- /dev/null +++ b/app/src/main/res/drawable/ic_play_circle.xml @@ -0,0 +1,12 @@ + + + + diff --git a/app/src/main/res/drawable/player_switch_thumb.xml b/app/src/main/res/drawable/player_switch_thumb.xml new file mode 100644 index 000000000..e86decc0c --- /dev/null +++ b/app/src/main/res/drawable/player_switch_thumb.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/player_switch_track.xml b/app/src/main/res/drawable/player_switch_track.xml new file mode 100644 index 000000000..652659196 --- /dev/null +++ b/app/src/main/res/drawable/player_switch_track.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/exo_styled_player_control_view.xml b/app/src/main/res/layout/exo_styled_player_control_view.xml index a4fb1cced..6249c12dc 100644 --- a/app/src/main/res/layout/exo_styled_player_control_view.xml +++ b/app/src/main/res/layout/exo_styled_player_control_view.xml @@ -17,7 +17,7 @@ android:animateLayoutChanges="true" android:orientation="vertical" android:paddingHorizontal="5dp" - android:paddingTop="5dp" > + android:paddingTop="5dp"> + app:thumbTint="@android:color/white" + app:track="@drawable/player_switch_track" + app:trackTint="#88ffffff" />