From bbd0df08d3043c2241a99d4f9ec262d4e6b9344a Mon Sep 17 00:00:00 2001 From: Stypox Date: Mon, 11 May 2020 12:48:27 +0200 Subject: [PATCH] Add shadow behind play icon in video detail fragment --- .../fragments/detail/VideoDetailFragment.java | 2 +- app/src/main/res/drawable/ic_headset_shadow.xml | 14 ++++++++++++++ .../drawable/ic_play_arrow_outline_white_24dp.xml | 9 --------- app/src/main/res/drawable/ic_play_arrow_shadow.xml | 12 ++++++++++++ .../layout-large-land/fragment_video_detail.xml | 2 +- app/src/main/res/layout/fragment_video_detail.xml | 2 +- 6 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 app/src/main/res/drawable/ic_headset_shadow.xml delete mode 100644 app/src/main/res/drawable/ic_play_arrow_outline_white_24dp.xml create mode 100644 app/src/main/res/drawable/ic_play_arrow_shadow.xml diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index 665d5a635..36e7a206c 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -1283,7 +1283,7 @@ public class VideoDetailFragment extends BaseStateFragment detailControlsPopup.setVisibility(View.GONE); spinnerToolbar.setVisibility(View.GONE); - thumbnailPlayButton.setImageResource(R.drawable.ic_headset_white_24dp); + thumbnailPlayButton.setImageResource(R.drawable.ic_headset_shadow); break; } diff --git a/app/src/main/res/drawable/ic_headset_shadow.xml b/app/src/main/res/drawable/ic_headset_shadow.xml new file mode 100644 index 000000000..53a3ec31a --- /dev/null +++ b/app/src/main/res/drawable/ic_headset_shadow.xml @@ -0,0 +1,14 @@ + + + + diff --git a/app/src/main/res/drawable/ic_play_arrow_outline_white_24dp.xml b/app/src/main/res/drawable/ic_play_arrow_outline_white_24dp.xml deleted file mode 100644 index 97e7fc7f5..000000000 --- a/app/src/main/res/drawable/ic_play_arrow_outline_white_24dp.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_play_arrow_shadow.xml b/app/src/main/res/drawable/ic_play_arrow_shadow.xml new file mode 100644 index 000000000..8d5871fad --- /dev/null +++ b/app/src/main/res/drawable/ic_play_arrow_shadow.xml @@ -0,0 +1,12 @@ + + + + diff --git a/app/src/main/res/layout-large-land/fragment_video_detail.xml b/app/src/main/res/layout-large-land/fragment_video_detail.xml index 427332123..cb2b9ccfe 100644 --- a/app/src/main/res/layout-large-land/fragment_video_detail.xml +++ b/app/src/main/res/layout-large-land/fragment_video_detail.xml @@ -61,7 +61,7 @@ android:layout_height="64dp" android:layout_gravity="center" android:background="@android:color/transparent" - app:srcCompat="@drawable/ic_play_arrow_shadow_white_24dp" + app:srcCompat="@drawable/ic_play_arrow_shadow" android:visibility="invisible" tools:ignore="ContentDescription" tools:visibility="visible" /> diff --git a/app/src/main/res/layout/fragment_video_detail.xml b/app/src/main/res/layout/fragment_video_detail.xml index 504af6760..474c89d32 100644 --- a/app/src/main/res/layout/fragment_video_detail.xml +++ b/app/src/main/res/layout/fragment_video_detail.xml @@ -55,7 +55,7 @@ android:layout_height="64dp" android:layout_gravity="center" android:background="@android:color/transparent" - app:srcCompat="@drawable/ic_play_arrow_shadow_white_24dp" + app:srcCompat="@drawable/ic_play_arrow_shadow" android:visibility="invisible" tools:ignore="ContentDescription" tools:visibility="visible" />