From e980e1a6133cbb33a6827092a4ab2f65cbd60ca7 Mon Sep 17 00:00:00 2001 From: Luke Simmons Date: Sat, 26 Dec 2020 22:51:34 -0600 Subject: Add background to autoplay controls Added a translucent background to the video autoplay controls. Before, when the video background was white, you couldn't see the video controls; this fixes that. --- app/src/main/res/drawable/background_autoplay.xml | 11 +++++++++++ .../main/res/layout/exo_autoplay_playback_control_view.xml | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/background_autoplay.xml diff --git a/app/src/main/res/drawable/background_autoplay.xml b/app/src/main/res/drawable/background_autoplay.xml new file mode 100644 index 00000000..8859f467 --- /dev/null +++ b/app/src/main/res/drawable/background_autoplay.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/app/src/main/res/layout/exo_autoplay_playback_control_view.xml b/app/src/main/res/layout/exo_autoplay_playback_control_view.xml index 76cc3b86..efdd1ac4 100644 --- a/app/src/main/res/layout/exo_autoplay_playback_control_view.xml +++ b/app/src/main/res/layout/exo_autoplay_playback_control_view.xml @@ -5,7 +5,8 @@ android:layout_height="wrap_content" android:paddingStart="16dp" android:paddingEnd="8dp" - android:layout_gravity="bottom"> + android:layout_gravity="bottom" + android:background="@drawable/background_autoplay">