Components are not transparent when using a background image?

6 views
Skip to first unread message

Chris B.

unread,
Feb 10, 2012, 10:55:44 PM2/10/12
to Android Programming at USF
I'm trying to set the background image for the screen with
this.SetBackgroundImage(..) in my $define method. If I just use
SetBackgroundColor, the components over it (such as labels) correctly
show the background color. However, if I try to use an image for the
screen background, none of the components appear to have transparent
backgrounds. Is there a way to get components to show the background
image underneath?

M. Hossein Amerkashi

unread,
Feb 10, 2012, 11:06:15 PM2/10/12
to android-progr...@googlegroups.com

Set background color like this:
this.BackgroundColor(COLOR_NONE);

then
this.BackgroundImage("myImage.jpg")

Chris B.

unread,
Feb 10, 2012, 11:08:21 PM2/10/12
to Android Programming at USF
Awesome, that fixed it! Thanks!
Reply all
Reply to author
Forward
0 new messages