[android-developers] Re: Padding of a Button

2010-10-06 Thread DanH
ImageView worked fine, with no need to set the background transparent. On Oct 6, 12:16 am, Zarah Dominguez zarahj...@yahoo.com wrote: Hi DanH, Use an ImageButton, set the image as the src, set the background to @android:color/transparent, then add padding. ImageButton

[android-developers] Re: Padding of a Button

2010-10-05 Thread DanH
Duh! I see. The existing was specifying the image as the background of a regular Button. I'll experiment with ImageButton. On Oct 5, 4:46 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Oct 5, 2010 at 5:40 PM, DanH danhi...@ieee.org wrote: Kind of a newbie question, I suppose:

[android-developers] Re: Padding of a Button

2010-10-05 Thread DanH
ImageButton sorta works except that the background is gratuitously supplied. Is there a standard resource I can use that's a transparent background? On Oct 5, 4:46 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Oct 5, 2010 at 5:40 PM, DanH danhi...@ieee.org wrote: Kind of a newbie

Re: [android-developers] Re: Padding of a Button

2010-10-05 Thread Mark Murphy
On Tue, Oct 5, 2010 at 6:04 PM, DanH danhi...@ieee.org wrote: ImageButton sorta works except that the background is gratuitously supplied.  Is there a standard resource I can use that's a transparent background? If you don't want a button background, just use ImageView. -- Mark Murphy (a

[android-developers] Re: Padding of a Button

2010-10-05 Thread DanH
Yeah, I haven't quite got it in my mind yet that Button isn't really special. On Oct 5, 5:07 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Oct 5, 2010 at 6:04 PM, DanH danhi...@ieee.org wrote: ImageButton sorta works except that the background is gratuitously supplied.  Is there a

[android-developers] Re: Padding of a Button

2010-10-05 Thread Zarah Dominguez
Hi DanH, Use an ImageButton, set the image as the src, set the background to @android:color/transparent, then add padding. ImageButton android:layout_height=wrap_content android:src=@drawable/search_button android:background=@android:color/transparent