im unable to create a transparent Activity on top of another activity
i refered this following links solution but didnt worked though need help
style.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Transparent" parent="android:Theme">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">true</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
</resources>
manifest:--
<activity android:name=".SampleActivity" android:theme="@style/Theme.Transparent"/>
i refered:--
How do I create a transparent Activity on Android?
How to create transparent activity in android?
Activity with transparent background
But none of the solutions worked from above links
Output from above code is -- fully white screen with no transparency
need help for creating transparent activity
help will be appreciated thanks in advance
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…