I have installed plug-in for splash screen,
$ ionic start myapp tabs
$ ionic plugin add org.apache.cordova.splashscreen
$ ionic platform add android
$ vi config.xml
Changed config file as the following
Put the following preference elements in config.xml:
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="1000" />
In the <platform name="android">, put the <splash> elements in, but DO NOT include the file extension:
<splash src="res/screen/android/640x960" density="mdpi"/>
<splash src="res/screen/android/768x1024" density="hdpi"/>
<splash src="res/screen/android/1536x2048" density="xhdpi"/>
只有它显示白色闪屏。我不知道哪里出错了?有人帮我出来吗?
答案 0 :(得分:0)
可能是value属性。该值是在资源文件夹中用作splash的特定图像文件的名称。有时候它不叫“屏幕”而是“泼水”。
为了更好地进行自定义,您还可以在Ionic CLI中使用资源 http://ionicframework.com/docs/cli/icon-splashscreen.html