I have a couple of buttons in my app which look likes the browser/dialer/maps icons and they are all clickable. Problem is I want to make them look pressed like when you press an icon on the homescreen/programs menu, i.e I want that orange(on emulator)/green(on my hero) rectangle to fill in the background of the icon image indicating that you actually pressed that button.

I guess you can do it with a draw/canvas but since it's sort of an already built in feature in android I figured it might be able to do in an easier way. Anyone who can help me out here?

Hi slimmy, You can do it using an xml for showing different states of button in different colors or can directly specify in onClick callback method. But in callback you'll have to handle its state, better u go with xml.