简体   繁体   中英

How to set number instead of icon to status bar on android

I want to make a timer/reminder that will show number of minutes until ring starts at status bar. It needs to be updated every minute automatically, and I know how to set icon but I don't know how to set number to be there instead of icon, so I don't want to have 30 icons of numbers... instead is there any option to somehow convert numbers to icons and show it on status bar every minute.

If your status bar means notification bar, according to this document , there is no way to put a text or number into the icon place. You may show the remaining time in the title or text in the notification as a normal App doing.

Edit: This thread is what you want. There is a method which converts numbers to icon format. You may pass the converted numbers to the icon parameter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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