[android-developers] Re: How to create button with icon and text

2009-10-07 Thread pro
I'm also looking for how to have buttons with text using drawable, instead of XML layout. Can someone point me to some snippet or docs how to do it? thanks -pro On Aug 27, 6:29 am, Mark Murphy mmur...@commonsware.com wrote: I have a additional question then. If I want to specify a

[android-developers] Re: How to create button with icon and text

2009-08-27 Thread Mark Murphy
How can I create a Button with icon and text? Use android:drawableLeft or android:drawableRight or android:drawableBottom or android:drawableTop. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html

[android-developers] Re: How to create button with icon and text

2009-08-27 Thread Klaus Kartou
I have a additional question then. If I want to specify a background color for the text only, how do I do that?When I set android:background=#FF I get a red color around both the text and the topDrawable. Regards, Klaus On Thu, Aug 27, 2009 at 2:17 PM, Mark Murphy

[android-developers] Re: How to create button with icon and text

2009-08-27 Thread fhucho
Thanks On Aug 27, 2:17 pm, Mark Murphy mmur...@commonsware.com wrote: How can I create a Button with icon and text? Use android:drawableLeft or android:drawableRight or android:drawableBottom or android:drawableTop. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App

[android-developers] Re: How to create button with icon and text

2009-08-27 Thread fhucho
I don't know if I understand it correctly, but you can try setting the background manually in the topDrawable image (ie don't make the background of topDrawable transparent). On Aug 27, 2:38 pm, Klaus Kartou kar...@gmail.com wrote: I have a additional question then. If I want to specify a

[android-developers] Re: How to create button with icon and text

2009-08-27 Thread Mark Murphy
I have a additional question then. If I want to specify a background color for the text only, how do I do that? You can't. When I set android:background=#FF I get a red color around both the text and the topDrawable. At most, as another poster suggested, you can have a different