From 8d548bee8fb4fa34a87f7d5320f714e54308c7b9 Mon Sep 17 00:00:00 2001 From: Moriafly <62319450+Moriafly@users.noreply.github.com> Date: Fri, 24 Dec 2021 21:38:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=20Seekbar=20=E6=8B=96?= =?UTF-8?q?=E5=8A=A8=E9=98=B4=E5=BD=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 1 + app/src/main/java/com/dirror/music/ui/player/PlayerActivity.kt | 3 ++- app/src/main/res/layout-land/activity_player.xml | 1 + app/src/main/res/layout/activity_player.xml | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index a6f6884a..a17f5d82 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -6,6 +6,7 @@ + diff --git a/app/src/main/java/com/dirror/music/ui/player/PlayerActivity.kt b/app/src/main/java/com/dirror/music/ui/player/PlayerActivity.kt index 1bada37c..14512f96 100644 --- a/app/src/main/java/com/dirror/music/ui/player/PlayerActivity.kt +++ b/app/src/main/java/com/dirror/music/ui/player/PlayerActivity.kt @@ -393,7 +393,8 @@ class PlayerActivity : SlideBackActivity() { } binding.ivLyricsBackground.load(bitmap) { size(ViewSizeResolver(binding.includePlayerCover.ivCover)) - transformations(BlurTransformation(this@PlayerActivity, 15F, 30F)) + // TODO sampling 5? + transformations(BlurTransformation(this@PlayerActivity, 15F, 15F)) crossfade(500) } previousBitmap = bitmap diff --git a/app/src/main/res/layout-land/activity_player.xml b/app/src/main/res/layout-land/activity_player.xml index 8edb6845..87ab05a1 100644 --- a/app/src/main/res/layout-land/activity_player.xml +++ b/app/src/main/res/layout-land/activity_player.xml @@ -74,6 +74,7 @@ android:layout_marginEnd="56dp" android:layout_marginBottom="4dp" android:alpha="0.72" + android:background="@null" android:maxHeight="2dp" android:minHeight="4dp" android:progressDrawable="@drawable/background_seek_bar_music" diff --git a/app/src/main/res/layout/activity_player.xml b/app/src/main/res/layout/activity_player.xml index 3ce8ddd1..7ac0247e 100644 --- a/app/src/main/res/layout/activity_player.xml +++ b/app/src/main/res/layout/activity_player.xml @@ -312,6 +312,7 @@ android:minHeight="4dp" android:progressDrawable="@drawable/background_seek_bar_music" android:splitTrack="false" + android:background="@null" android:thumb="@drawable/background_seek_bar_thumb" android:visibility="visible" app:layout_constraintEnd_toEndOf="parent"