Use ImageButton.

On Wed, Jul 14, 2010 at 8:13 PM, Raul Martinez <[email protected]> wrote:
> i want to replace a button with an image, and i tried doing it through xml
> with android:src="@drawable/icon" but its not working what should i do, or
> is there another way of replacing a button with an image

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to