Ich habe eine Aktivität, und ich setze es launchMode ist singleInstance. Jetzt setze ich den Hintergrund transparent. Aber wenn ich ihn setze, ist der Hintergrund schwarz. so, was soll ich do.below ist mein CodeWie setze ich transparente Aktivität in Android 6.0
in der Art:
<style name="translucent" parent="Theme.AppCompat">
<item name="android:windowBackground">@color/translucent_background</item>
<item name="android:windowIsTranslucent">true</item>
<itemname="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
</style>
in AndroidManifest
<activity
android:name=".main.activity.AssisTipsActivity"
android:screenOrientation="portrait"
android:launchMode="singleInstance"
android:theme="@style/translucent"/>
Ich habe nicht "Theme.AppCompat.Translucent" Thema Ich benutze api23 – jevely
können Sie versuchen: '- @ @ android: Farbe/transparent
' –