开发者

How can i add a counter badge to a widget?

How can I开发者_StackOverflow社区 add a counter badge to a widget? Like in this screenshot

Google Reader also has a widget with counter.


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

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜