how to set android splash screen using config.xml of cordova2.6

烂漫一生 提交于 2019-12-24 02:17:15

问题


I am using cordova2.6 for my app. I can set splash screen using the SplashScreen api comes with cordova. That works fine too but when I tried to use

<gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi" />

inside the config.xml, it says "gap" is an undefined prefix and throws error. can someone explain what I am doing wrong here.

Thanks in advance


回答1:


In your Android App folder go to the res folder and put the splashscreen inside drawable drawable-hdpi drawable-mdpi ... folders with good size :)




回答2:


You might have problem in tag definition. Do you have this property: xmlns:gap = "http://phonegap.com/ns/1.0"



来源:https://stackoverflow.com/questions/16189621/how-to-set-android-splash-screen-using-config-xml-of-cordova2-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!