Question

If I have a reference to a view, how can I overlay an icon image on top of an existing view? Like in the screenshot below (http://android.kanokgems.com/sms-unread-count):

screenshot showing unread count on top of the icon

It overlays an icon at the top right corner of the dialer icon. How can I do that?

Thank you.

Was it helpful?

Solution

Using RelativeLayout, you could place 2 imageviews on the same place. The second imageview will be placed automatically on top of the first one. You could assign the properties on the second one to aligned it on the left, bottom, above, or right of the first one.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top