[英]How to add Splash screen in ionic cordova?
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"/>
只有它顯示白色的啟動畫面。 我不知道我哪里出了錯? 有人幫我出來嗎?
可能是值屬性。 該值是用作資源文件夾中的啟動文件的特定圖像文件的名稱。 有時它不被稱為“屏幕”而是“飛濺”。
為了更好地自定義,您還可以使用Ionic CLI中的資源http://ionicframework.com/docs/cli/icon-splashscreen.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.