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.
精彩评论