Custom translucent theme

by Olivier Guilyardi » Fri, 16 Oct 2009 23:03:31 GMT

Sponsored Links

I have 2 activities and need the second one to be translucent when
started by and over the first one.

When I set my activity theme to @android:style/Theme.Translucent, it

I however want to customize alpha. So, following the example in
ApiDemos - app - TranslucentActivity, I write:

in styles.xml:

    <style name="Theme" parent="android:Theme">
    <style name="Theme.Translucent" parent="android:style/
        <item name="android:windowBackground">@drawable/
        <item name="android:windowNoTitle">true</item>
        <item name="android:colorForeground">#fff</item>

and in colors.xml:

    <drawable name="translucent_background">#80000000</drawable>

and set my activity theme to @style/Theme.Translucent

But it doesn't work any more, the second activity is black and opaque.

I also tried with (notice the @) :
<style name="Theme.Translucent" parent="@android:style/

What's wrong ?

Other Threads

1. Android better than iPad

Latest feature of Andoid that iPad don't have and knowone knows. to
know plz visit.


2. Urgent job opening


This is *Rubi* from* BetaSoft Systems*, I have an urgent job opening for
you. If you are comfortable with below mentioned job requirement forward me
your updated resume with following details:

*Present Location:*



*Visa Status:*

*If  H1B your Employer Details:*

*Expected Hourly Rate (W2, C2C, 1099) :*

If you are not available for this assignment, please feel free to forward to
any associate whom you feel may be interested and qualified.

If you have any doubts you can contact me anytime at below mentioned number.
Duration  9-12 Month project
Location  MA

JOb Description

Strong analysis and programming skills utilizing Biztalk 2006 R2.

Independent, self-motivated, team player.

Able to work under tight deadlines.

 *Thanks & Regards,*


*Rubi Tiwari*


*Beta Soft Systems, Inc., Fremont, CA-94538*

*Work- 510-744-1700 ext. 324 |Fax- 1-800-368-1322|* |**

*YIM: **** *
*We are "Certified Minority Owned Business Enterprise (MBE)". *

*E-Verify Employer*


3. Wireless Network Security From Hackers

4. Raw NMEA sentence

5. Quick Contact Window integration like Facebook and Twitter

6. sending c2dm: No subject alternative DNS name matching found.

7. AT&T free Q/A session on Android