Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
287 views
in Technique[技术] by (71.8m points)

android - issue in creating a transparent Activity on top of another activity

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...