HoneyComb 上的通知图标太暗
我有一个 Android 应用程序,它使用 NotificationManager 通知用户某些事件。当我调用 .notify() 时,我指定的图标将显示在状态栏中。它在各种 Android 2.2 和 2.3 手机上运行良好。但在运行 Android 3.1 的 Galaxy Tab 10.1 上,状态栏上的通知图标非常暗淡,几乎看不见。我见过另一个有类似问题的应用程序,但我使用的所有其他应用程序的通知看起来都不错。我已遵循 http://developer.android.com/guide/ 上的指南Practices/ui_guidelines/icon_design_status_bar.html,包括创建Android 2.3+风格的图标并将它们放入drawable-hdpi-v9中, drawable-mdpi-v9 等文件夹。当我在我的开发机器上查看这些图标时,它们看起来都不错;它们的颜色正确且不暗淡。我可能做错了什么,导致我的通知图标在 Honeycomb 状态栏上显示得如此暗淡?
I have an Android app that uses the NotificationManager to inform the user of certain events. When I call .notify(), the icon I specify is shown in the status bar. It works fine on various Android 2.2 and 2.3 phones. But on a Galaxy Tab 10.1 running Android 3.1 the notification icon on the status bar is so dim it can barely be seen. I've seen one other app that has a similar problem, but all the other apps I'm using that do notifications look OK. I've followed the Guidelines at http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html, including creating Android 2.3+ style icons and putting them in the drawable-hdpi-v9, drawable-mdpi-v9, etc. folders. The icons all look OK when I look at them on my development machine; they are the right colors and are not dim. What could I be doing wrong that is causing my notification icon to be shown so dim on the Honeycomb status bar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
截至今天,Android 开发人员网站上提供了更新的文档:
http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html
As of today there is updated documentation available at the android developers web site:
http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html