[android-developers] ImageButton with rounded corners and no padding
A normal ImageButton with default padding embeds a rectangular image
into a frame with rounded corners. What I would like to do is
eliminate that padded frame and still have transparent rounded
corners. If I set:
android:padding="0px"
in the XML for the ImageButton, then the frame around the button
disappears, but the button has sharp corners - not rounded. I suppose
I could edit my images to make transparent rounded corners, but isn't
there a more straightforward way to do it? I'm looking for something
that will automatically erase (make transparent) the corners of my
image when padding = 0.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home