解决应用白屏
修改原生的drawable目录下的launch_background.xml
<?xml version="1.0" encoding="utf-8"?><!-- Modify this file to customize your launch splash screen --> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@android:color/white" /> <!-- You can insert your own image assets here --> <!-- <item> <bitmap android:gravity="center" android:src="@mipmap/launch_image" /> </item> --> //这样写可以通过图片铺满整个屏幕,不同屏幕可能会有拉伸 <item android:drawable="@mipmap/splash_bg"> </item> </layer-list>