PDA

View Full Version : Making an image a button




hoosierfan24
Sep 15, 2009, 08:30 PM
Hello I am working on some updates for my app to make it more exciting looking and I was wondering if there was a way to make and image a button for example I want to make my button an eraser and when i tap the eraser it does the same thing as if i taped the button. I know how to put an image within a button but i want the image to be the button can anyone help



PhoneyDeveloper
Sep 15, 2009, 08:47 PM
There's no difference between making an image a button and putting an image inside a button. Just set the image as the background image for the button, make it a custom button so it doesn't draw anything else. Voila, your image is a button.

If for some reason you really really don't want to do this then just put an empty button on top of your image view. Same thing.

hoosierfan24
Sep 15, 2009, 09:56 PM
ok wow thanks I feel like an idiot now haha