首先在drawable文件夹创建shape_launch
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item >
<bitmap
android:src="@drawable/splash" />
</item>
</layer-list>
然后在styles.xml里添加 应用 shape_launch
<style name="LaunchStyle" parent="AppTheme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowBackground">@drawable/shape_launch</item>
</style>
然后在splashActivity应用样式主题
<activity
android:name=".activity.SplashActivity"
android:theme="@style/LaunchStyle"
就OK了