简体   繁体   English

状态栏中的通知图标在少数 android 设备中没有变化

[英]Notification Icon in status bar is not changing in few android devices

How do I can change the color of notification icon in status bar against the other application themes?如何根据其他应用程序主题更改状态栏中通知图标的颜色?

在此处输入图像描述

From the above image the last icon belongs to my application.从上图中,最后一个图标属于我的应用程序。 But I can see the other applications notification icon color is changing against theme (Compare two images).但我可以看到其他应用程序通知图标的颜色正在根据主题发生变化(比较两个图像)。

This is working fine in few devices.这在少数设备中运行良好。 But this is not working in some other devices.但这不适用于其他一些设备。 For example the above picture I took from Huawei, but the other application icon color changed.比如上图我是从华为拍的,但是其他应用图标颜色变了。

Please help me to find the solution请帮我找到解决方案

This could be a compatibility issue based on different mobile provider.这可能是基于不同移动提供商的兼容性问题。 Can you please tell what base theme are you using for your application?你能告诉你的应用程序使用什么基本主题吗? You can find that information at your app(in the android view for android studio)->java->res->values->styles.xml.您可以在您的应用程序中找到该信息(在 android 工作室的 android 视图中)->java->res->values->styles.xml。

EDIT编辑

Remove DarkActonBar and try to only use DayNight.删除 DarkActonBar 并尝试仅使用 DayNight。 Then enforce dark action bar by checking the mode in the launcher activity's onCreate.然后通过检查启动器活动的 onCreate 中的模式来强制执行深色操作栏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM