From 98b7362377304b8d92f3623f62ae7e38d0de61e7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 6 Oct 2022 13:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/widget/TitleBar.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/widget/TitleBar.kt b/app/src/main/java/io/legado/app/ui/widget/TitleBar.kt index 028b47090..7c42a04c5 100644 --- a/app/src/main/java/io/legado/app/ui/widget/TitleBar.kt +++ b/app/src/main/java/io/legado/app/ui/widget/TitleBar.kt @@ -215,6 +215,7 @@ class TitleBar @JvmOverloads constructor( override fun setBackgroundColor(color: Int) { if (color.alpha < 255) { + //这里不能改为0f,改为0f在横屏模式下文字和图标颜色会变 elevation = 0.1f } super.setBackgroundColor(color) @@ -223,6 +224,7 @@ class TitleBar @JvmOverloads constructor( override fun setBackground(background: Drawable?) { if (background is ColorDrawable) { if (background.alpha < 255) { + //这里不能改为0f,改为0f在横屏模式下文字和图标颜色会变 elevation = 0.1f } }