> I want to put an image on a ToggleButton.  If I use android:background
> to set the image then it doesn't look like a button any more, just the
> image.  What am I missing?

The original background is probably a StateListDrawable, with different
nine-patch bitmaps for different states (pressed, focused, etc.). And, of
course, the background is what provides the actual button itself. When you
replace the background with a simple image, you lose all of that.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to