One lightweight way of doing this is to use a Button with android:drawableTop and android:drawablePadding, which will put both the text and image inside the button. There are separate attributes for setting drawables for each "side" of the text.
j On Sun, Apr 19, 2009 at 11:56 PM, [email protected] <[email protected]> wrote: > > Hi all, > I want to use an imagebutton in my application, but only a button > with image can not indicate its function clearly. If there are some > text beside the button, I think everything will be more explicit. > But I don't know how to add text in an imagebutton in Android.Can > anyone help me with code?If text is not supported in imagebutton, can > I define my own "imagebutton" which can show text by extending > ImageButton, and how to do this? > Thank you in advance! > > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

