Question regarding Transparent Background

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Question regarding Transparent Background

Postby jasonworkx » Fri Dec 12, 2008 2:18 am

Hi guys,

I just want to ask something about the transparent theme used by the API Demos.

I have created an application(it's a hello world application with a transparent background) which is implementing the transparent theme used by the API Demos. The application i created is perfectly running on the emulator, but when i decided to run it on a real device, the background seems not to be transparent, instead, the background is color black. :(

Is there something i forgot to include on my device?

Thank you guys, i hope you can help me with this one.
Once Poster
Once Poster
Posts: 1
Joined: Thu Dec 04, 2008 7:42 am
Location: Philippines


Postby timhoeck » Wed Jan 21, 2009 7:46 pm

If you want your application to be transparent/translucent, I believe you need to set the theme, and not just change the background:

You can do this via code:

Code: Select all
public void onCreate(Bundle savedInstanceState) {

or in your AndroidManifest.xml, in your Activities settings.

You can use:
Junior Developer
Junior Developer
Posts: 22
Joined: Fri Jan 16, 2009 4:41 pm


Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests