Button inherits from Textview .. and Textview has the ability to set drawables/images on left or bottom or right or left .. Check this setCompoundDrawablesWithIntrinsicBounds<http://developer.android.com/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds%28android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable%29> (Drawable<http://developer.android.com/reference/android/graphics/drawable/Drawable.html>left, Drawable<http://developer.android.com/reference/android/graphics/drawable/Drawable.html>top, Drawable<http://developer.android.com/reference/android/graphics/drawable/Drawable.html>right, Drawable<http://developer.android.com/reference/android/graphics/drawable/Drawable.html>bottom) This is not through xml though ..
-Madan On Sun, Mar 15, 2009 at 11:32 AM, megabot <[email protected]> wrote: > > Hello, > > Is there a way to create Buttons that contain both an Image and Text > (image on top text below or image left and text right)? And how can > this be done within a xml layout file? > > For example, the application 'Pkt Auctions eBay' (see Android Market) > has these type of buttons. > > So far I have tried and googled all over and found nothing on the > matter. Help is much appreciated. Thanks in advance. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

