我怎么能反徽章添加窗口小部件? [英] How can i add a counter badge to a widget?

查看:125
本文介绍了我怎么能反徽章添加窗口小部件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于我怎么能反徽章添加窗口小部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆