当我们启动app时。系统会默认提前加载一个预览页面 这种预览页面可能是白色或者黑色 窗口 ,这时我们的应用闪屏页后显示 会显得比较不和谐。这时 只需要为启动页 设置一个theme 即可
<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowDisablePreview">true</item>
</style>
当我们启动app时。系统会默认提前加载一个预览页面 这种预览页面可能是白色或者黑色 窗口 ,这时我们的应用闪屏页后显示 会显得比较不和谐。这时 只需要为启动页 设置一个theme 即可
<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowDisablePreview">true</item>
</style>