为什么在深色和浅色模式下通知颜色不同呢?

huangapple go评论76阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年5月30日 19:18:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/62101645.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定