how to make my form to transparent/translucent background???

Put your problem here if it does not fit any of the other categories.

how to make my form to transparent/translucent background???

Postby sit06603 » Mon Sep 22, 2008 11:13 am

hi,

I don't know how to make it transparent/translucent background???
I try the same code as in ApiDemo it working inside the demo... then I
copy as similar as ApiDemo...
but it does not working in my project... did I miss out something???
it only show black background, but I wants it to be transparent...
how???

//Manifest
<activity android:name=".text.FManager" android:label="Text/
LogTextBox" android:theme="@style/Theme.Translucent">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.SAMPLE_CODE" />
</intent-filter>
</activity>


//style.xml

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


<style name="Theme.Transparent">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@android:style/
Animation.Translucent</item>
<item name="android:windowBackground">@drawable/
transparent_background</item>
<item name="android:windowNoTitle">true</item>
<item name="android:colorForeground">#fff</item>
</style>


//color.xml

<drawable name="screen_background_black">#ff000000</drawable>
<drawable name="translucent_background">#00000000</drawable>
<drawable name="transparent_background">#00000000</drawable>

can anyone point out what I miss out???



Wesley.
sit06603
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu May 15, 2008 11:22 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 22 guests