在style.xml添加代码如下
<style name="SplashTheme" parent="Base.Theme.AppCompat">
<item name="android:windowBackground">@drawable/baohuang</item>
<item name="android:windowFullscreen">true</item>
<item name="windowNoTitle">true</item>
<!--<item name="android:windowIsTranslucent">false</item>-->
<!--<item name="android:windowDisablePreview">true</item>-->
</style>
然后再manifest修改代码
<application
android:allowBackup="true"
android:icon="@drawable/baohuang"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/SplashTheme">
修改最后一个theme字段