//首先在style文件中设置冷启动
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/black</item>
<item name="colorAccent">@color/main_color</item>
</style>
//调用上面的ActionBar,添加冷启动,设置启动页面的背景图片
<!--冷启动-->
<style name="AppWelcome" parent="AppTheme">
<item name="android:windowBackground">@drawable/splash_icon</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowFullscreen">true</item>
</style>
//然后在清单文件中设置你启动页Activity的Style
<activity android:name=".module.SplashActivity"
android:theme="@style/AppWelcome"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>