如何使用cordova2.6的config.xml中设置的android启动画面 [英] how to set android splash screen using config.xml of cordova2.6

查看:155
本文介绍了如何使用cordova2.6的config.xml中设置的android启动画面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用cordova2.6我的应用程序。我可以使用闪屏API自带科尔多瓦设置开机画面。这工作也没关系,但是当我试图用

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" />

config.xml文件里面,它说:差距是一个未定义的preFIX并引发错误。有人可以解释我做错了。

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

在此先感谢

推荐答案

您可能在标签定义问题。你有没有这个属性:
 的xmlns:缺口= http://phonegap.com/ns/1.0

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

这篇关于如何使用cordova2.6的config.xml中设置的android启动画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆