【Android】app 启动 白屏 黑屏解决方案
文章目录
新建个style,然后再设置windowBackground属性为透明,或者背景色,如果有欢迎界面的话,可以直接设置为欢迎界面的背景
然后在AndroidManifest.xml设置启动activity的主题1
<style name="Theme.BackgroundTranslucent" parent="android:Theme.Holo.Light.NoActionBar.Fullscreen">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
</style>
1 | android:theme="@style/Theme.BackgroundTranslucent" |

