【发布时间】:2010-03-29 17:47:59
【问题描述】:
Notification 和NotificationManager 用于创建放置在屏幕左上角的图标。 Notification 也需要在状态栏下拉菜单上有一个条目。
但是,右侧的电池、信号强度、无线指示灯等图标不需要在状态栏上输入任何内容。
如何在状态栏下拉菜单中没有任何条目的情况下制作此类图标?
【问题讨论】:
标签: android icons notifications notificationmanager
Notification 和NotificationManager 用于创建放置在屏幕左上角的图标。 Notification 也需要在状态栏下拉菜单上有一个条目。
但是,右侧的电池、信号强度、无线指示灯等图标不需要在状态栏上输入任何内容。
如何在状态栏下拉菜单中没有任何条目的情况下制作此类图标?
【问题讨论】:
标签: android icons notifications notificationmanager
我相信通知栏的右侧区域是为操作系统保留的。
【讨论】:
你为什么会接受上面的答案。 . .如果您使用 android 源代码并自己构建它,那么在右侧设置图标并非不可能。我在How to create a Notification \ status bar icon on the right side?How to create a Notification \ status bar icon on the right side?
【讨论】: