[android-beginners] Re: Icon and text on button

2009-10-05 Thread erisa
Using setCompoundDrawablesWithIntrinsicBounds() worked perfectly. Thank you. But why did that work and not setCompoundDrawables()? Bruce --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To

[android-beginners] Re: Icon and text on button

2009-10-04 Thread Raphael
Try using this one: http://d.android.com/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable,%20android.graphics.drawable.Drawable) or directly in xml: