Activity should be transparent, but has black background
Posted
by Uwe Krass
on Stack Overflow
See other posts from Stack Overflow
or by Uwe Krass
Published on 2010-04-22T01:41:38Z
Indexed on
2010/04/22
1:43 UTC
Read the original article
Hit count: 258
I followed the instructions of writing a transparent layout.
My res/values/style.xml looks like this:
<resources>
<style name="Theme" parent="android:Theme" />
<style name="Theme.Transparent">
<item name="android:windowBackground">@drawable/transparent_background</item>
</style>
<drawable name="transparent_background">#00000000</drawable>
</resources>
The activity snippet looks like this:
<activity android:name=".Controlls"
android:label="Controlls"
android:theme="@style/Theme.Transparent">
When I start this activity from my root activity, the layout gets drawn correctly, but the background stays black.
© Stack Overflow or respective owner