views:

537

answers:

2

Hi,

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

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

Thank you.

A: 

You're asking two different questions. The first is how you have an image on top of a view. The second is how to add an image to an existing image. Which is it you're trying to solve? Also, maybe explain what you're trying to accomplish.

fiXedd
A: 

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.

anmustangs