ImageView worked fine, with no need to set the background transparent.

On Oct 6, 12:16 am, Zarah Dominguez <[email protected]> wrote:
> 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"
>      android:id="@+id/ibtn_do_search"
>      android:focusable="true"
>      android:layout_width="fill_parent"
>      android:scaleType="fitXY"
>      android:clickable="true"
>      android:layout_centerVertical="true">
> </ImageButton>
>
> I hope this achieves what you want.
>
> Best Regards,
> Zarah.
>
> On Oct 6, 6:12 am, DanH <[email protected]> wrote:
>
> > 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 <[email protected]> wrote:
>
> > > On Tue, Oct 5, 2010 at 6:04 PM, DanH <[email protected]> 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 Commons 
> > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > Android Training in London:http://skillsmatter.com/go/os-mobile-server

-- 
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

Reply via email to