From ae3b633636bd5eee9b6ac67f0d5bc60e0bdd6f17 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 29 Mar 2020 14:55:24 +0200 Subject: [PATCH] Fixed description overlapping mini player --- .../main/java/de/danoeh/antennapod/activity/MainActivity.java | 2 +- app/src/main/res/layout/audioplayer_fragment.xml | 3 ++- app/src/main/res/layout/external_player_fragment.xml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java index 8b1c7115d..d487bca5e 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -138,7 +138,7 @@ public class MainActivity extends CastEnabledActivity { public void onSlide(@NonNull View view, float slideOffset) { AudioPlayerFragment audioPlayer = (AudioPlayerFragment) getSupportFragmentManager() .findFragmentByTag(AudioPlayerFragment.TAG); - float condensedSlideOffset = Math.max(0.0f, Math.min(0.1f, slideOffset - 0.5f)) / 0.1f; + float condensedSlideOffset = Math.max(0.0f, Math.min(0.2f, slideOffset - 0.2f)) / 0.2f; audioPlayer.getExternalPlayerHolder().setAlpha(1 - condensedSlideOffset); audioPlayer.getExternalPlayerHolder().setVisibility( condensedSlideOffset > 0.99f ? View.GONE : View.VISIBLE); diff --git a/app/src/main/res/layout/audioplayer_fragment.xml b/app/src/main/res/layout/audioplayer_fragment.xml index 905371fa4..537e63ad0 100644 --- a/app/src/main/res/layout/audioplayer_fragment.xml +++ b/app/src/main/res/layout/audioplayer_fragment.xml @@ -31,7 +31,8 @@ android:layout_alignParentTop="true" android:background="?android:attr/windowBackground" tools:layout_height="@dimen/external_player_height" - tools:background="@android:color/holo_green_light" /> + tools:background="@android:color/holo_green_light" + android:elevation="8dp"/> + tools:src="@drawable/ic_av_play_white_48dp"/>