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/layout/exo_autoplay_playback_control_view.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/res/layout') 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"> Date: Sat, 26 Dec 2020 22:53:59 -0600 Subject: Animate player controls Fade in and out on the player controls --- app/src/main/res/layout/item_post_detail_video_autoplay.xml | 3 ++- app/src/main/res/layout/item_post_video_type_autoplay.xml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/item_post_detail_video_autoplay.xml b/app/src/main/res/layout/item_post_detail_video_autoplay.xml index 556a9aff..150f54d6 100644 --- a/app/src/main/res/layout/item_post_detail_video_autoplay.xml +++ b/app/src/main/res/layout/item_post_detail_video_autoplay.xml @@ -205,7 +205,8 @@ android:id="@+id/player_view_item_post_detail_video_autoplay" android:layout_width="match_parent" android:layout_height="match_parent" - app:controller_layout_id="@layout/exo_autoplay_playback_control_view"/> + app:controller_layout_id="@layout/exo_autoplay_playback_control_view" + android:animateLayoutChanges="true" /> + app:controller_layout_id="@layout/exo_autoplay_playback_control_view" + android:animateLayoutChanges="true" />