在style里面設定android:windowIsTranslucent = true防止黑屏,但是設定后activity的切換影片不執行了。
按照網上的方法自定義android:windowAnimationStyle屬性的style,但是這樣也只能讓activity在onCreate時才執行一次影片,因為我設定的activity跳轉模式為singleInstance,而且專案需要,退出界面是不finishactivity,所以問一下大家怎樣讓activity在onResume時也有過渡影片???
uj5u.com熱心網友回復:


求幫幫忙
uj5u.com熱心網友回復:


uj5u.com熱心網友回復:
<style name="BaseTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar"><item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowNoTitle">true</item>
</style>
使用以上主題,不要用 <item name="android:windowIsTranslucent">true</item>屬性。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/279728.html
標籤:Android
