我怎么能反徽章添加窗口小部件?

问题描述:

我如何反徽章添加窗口小部件?像这张截图

How can I add a counter badge to a widget? Like in this screenshot

谷歌阅读器也有柜台的小部件。

这是什么问题?主屏幕小部件可以有一个布局,该布局可以包含的ImageView和一个TextView。

What is the problem? A home screen widget can have a layout, and that layout can contain an ImageView and a TextView.

您然后创建一个检查多少封邮件,还有例如后台服务每隔15分钟,然后更新小窗口

You will then create a background service that is checking how many messages there are e.g. every 15 minutes, and then update the widget.