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
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
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
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
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
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
6 matches
Mail list logo