You should be able to just set the color directly as android:background="#00000000". But @null is the most efficient.
On Wed, Aug 19, 2009 at 2:49 PM, Streets Of Boston <flyingdutc...@gmail.com>wrote: > > Set the background-color to a transparent color (i.e. its alpha- > component is 0). > > I'm not sure about the syntax, it may be totally incorrect, but you'll > get the idea :-) : > in colors.xml > <color name="transparent">#00000000</color> > > and in your layout-xml, set the background to transparent: > android:background="@color/transparet" > > > On Aug 19, 4:49 pm, phil <phil.pellouch...@gmail.com> wrote: > > i want to be able to specify an android:src, but I want > > android:background="" - complaints that string types are not allowed > > when compiling. > > > > I basically want a button without any background (but that *does* have > > a 'src'). > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---