标题翻译
why Notification Color different in Dark and Light mode?
问题
我们使用 FCM 通知,并通过 com.google.firebase.messaging.default_notification_color
元数据在 AndroidManifest.xml
中设置颜色,但是在 Dark 模式和 Light 模式下,Android 通知显示两种不同的颜色,这对我们来说存在问题。
对此是否有颜色的要求?我在 Android 文档中阅读了关于通知颜色的内容,但是我没有理解清楚。
图片链接:
英文翻译
We use FCM Notification and set color in AndroidManifest.xml
by com.google.firebase.messaging.default_notification_color
metadata but It have issue for us why Android Notification shows two different colors in Dark and Light mode.
Is there a requirement for color for that? I reed about Notification color in Android Doc but I did not catch.
答案1
得分: 2
我明白了。Android操作系统在切换模式时会改变颜色位。
英文翻译
I got it. Android OS changes color bit when change mode.
专注分享java语言的经验与见解,让所有开发者获益!
评论