How to create a status bar icon on the right side?

2019-05-07 15:49发布

问题:

Notification and NotificationManager are used to create icons to be placed on the top-left position of the screen. A Notification also need to have an entry on the status bar pull-down.

However, icons on the right side such as the battery, signal strength, wireless indicators do not need any entry on the status bar.

How do I make such icons without any entry in the status bar pull-down?

回答1:

I believe the right side area of the notification bar is reserved for the OS.



回答2:

Why would you accept the above answer . . . if you take the android source and build it yourself then setting the icon on the right side isn't impossible. I've Started a new Question with this check here How to create a Notification \ status bar icon on the right side?