1

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

Google Reader also has a widget with counter.

Tometzky
  • 19,364
  • 4
  • 54
  • 64
chrisonline
  • 6,341
  • 10
  • 37
  • 60

1 Answers1

1

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.

Kaj
  • 10,564
  • 1
  • 30
  • 27
  • Yes of course, but i wnat to know if a standard counter badge exists or if i have to add my own with imageview and textview. I mean the counter badge like in the notification bar. There is no need to create a imageview and textview to display the counter. – chrisonline May 25 '11 at 13:26
  • 1
    I have not seen a standard widget for that. – Kaj May 25 '11 at 13:50