Custom translucent theme

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


Sponsored Links
 Hi,

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

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/
Theme.Translucent">
        <item name="android:windowBackground">@drawable/
translucent_background</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:colorForeground">#fff</item>
    </style>

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/
Theme.Translucent">

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. www.infotech2you.blogspot.com

-- 

2. Urgent job opening

Hi,

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

*Availability:*

*Relocation:*

*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.
*ONLY FOR US CITIZEN, EAD AND GREEN CARD HOLDERS*
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|*

r...@betasoftsystems.com |*www.betasoftsystems.com*

*YIM: **connect2r...@yahoo.com** *
*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: java.security.cert.CertificateException: No subject alternative DNS name matching android.apis.google.com found.

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