1.启动前黑屏
1)platforms/android/app/src/AndroidManifest.xml
<application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
</application>
修改android:theme为android:theme="@style/Theme.AppStartLoadTranslucent";
2)新建styles.xml文件
platforms/android/app/src/main/res/values/styles.xml
内容为:
<resources>
<style name="Theme.AppStartLoadTranslucent" parent="android:Theme">
<item name="android:windowBackground">@drawable/screen</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowActionBar">false</item>
</style>
</resources>
3)在config.xml 中配置:<preference name="SplashScreen" value="splash" />