this should be an easy one and I really thought that what I was doing was correct but apparently it isn’t. I have an image that I want to use as a button, I have the button created and working. But now I just want this image to show up instead of the standatd android “button”.
Anyone know how to do this?
Make a use of
<selectorCreate in your
drawable-hdpifolder xml file calledbutton_image.xmland add the following lines:
and then in your main xml where you declare your button add this line
And then you get effect of reall button. Note that you need two pictures to get effect of button being clicked.
If you dont want to use the selector and use just picture instead then just