我在我的config.xml文件(myapp_folder/config.xml)中使用了這個代碼,而不是在www目錄中。 (myapp_folder/res/screen/android/mysplash-screen-image)Phonegap在config.xml中添加啓動畫面不起作用?
<platform name="android">
<!-- you can use any density that exists in the Android project -->
<splash src="res/screen/android/splash-land-hdpi.png" density="land-hdpi"/>
<splash src="res/screen/android/splash-land-ldpi.png" density="land-ldpi"/>
<splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi"/>
<splash src="res/screen/android/splash-land-xhdpi.png" density="land-xhdpi"/>
<splash src="res/screen/android/splash-port-hdpi.png" density="port-hdpi"/>
<splash src="res/screen/android/splash-port-ldpi.png" density="port-ldpi"/>
<splash src="res/screen/android/splash-port-mdpi.png" density="port-mdpi"/>
<splash src="res/screen/android/splash-port-xhdpi.png" density="port-xhdpi"/>
</platform>
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="10000" />
不顯示啓動畫面圖像。現在我已經檢查了(platforms/android/res/drawable-port-hdpi)該文件夾是空白的。
你能幫助我嗎?如何在Android上顯示我的自定義Splashscreen?
寫@Imran但我認爲如何在config.xml文件中添加啓動畫面圖像?我認爲不需要res-> drawable文件夾..你能幫我嗎? res/screenandroid/my-splash-screen-images ..如何添加config.xml文件? – Angu