终于以正确的方式得到了我的答案闪屏。我只是跟随。
在 values-->styles.xml 我创建了启动画面背景图像
<style name="Splash" parent="AppTheme.NoActionBar">
<item name="android:windowBackground">@drawable/splash</item>
</style>
对于低于 api 19,在 values-19->styles.xml 我使用
<style name="Splash" parent="AppTheme.NoActionBar">
<item name="android:windowBackground">@drawable/splash</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
我从 SplashActivity 中删除了 setContentview() 并在 Manifest.xml 文件 android:theme="@style/Splash" 中添加了启动画面的样式