启动画面,程序图标
安装第一屏插件
cordova plugin add org.apache.cordova.splashscreen
在res目录放入不同分辨率的图片
在config.xml中加入
<platform name="android">
<allow-intent href="market:*"/>
<icon src="res/icons/android/icon-36-ldpi.png" density="ldpi"/>
<icon src="res/icons/android/icon-48-mdpi.png" density="mdpi"/>
<icon src="res/icons/android/icon-72-hdpi.png" density="hdpi"/>
<icon src="res/icons/android/icon-96-xhdpi.png" density="xhdpi"/>
<icon src="res/icons/android/icon-144-ldpi.png" density="xxhdpi"/>
<icon src="res/icons/android/icon-192-ldpi.png" density="xxxhdpi"/>
<splash src="res/screens/android/drawable-land-hdpi-screen.png" density="land-hdpi"/>
<splash src="res/screens/android/drawable-land-ldpi-screen.png" density="land-ldpi"/>
<splash src="res/screens/android/drawable-land-mdpi-screen.png" density="land-mdpi"/>
<splash src="res/screens/android/drawable-land-xhdpi-screen.png" density="land-xhdpi"/>
<splash src="res/screens/android/drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/>
<splash src="res/screens/android/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/>
</platform>
<preference name="SplashScreen" value="screen"/>
<feature name="SplashScreen">
<param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen"/>
</feature>