How to create a notification without icon in the statusbar or simply hide it?

前端 未结 5 1562
闹比i
闹比i 2021-01-02 00:42

I\'d like to know how to create a notification that doesn\'t show the icon in the statusbar.

There is a way to hide it?

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 01:08

    there is no way to show notification without icon.

    You can use transparent image. But, it take space of icon.
    

    @CommonsWare: Since the primary point of raising a Notification is to put an icon in the status bar, there is usually no need to not put an icon in the status bar, unless it is interactive, such as a toggle or information notification that will always run and you might want on the pull down, but has no use for an icon.

    check this answer for more detail.

提交回复
热议问题