Gra*_*eld 3 xml android web-applications cordova
我不能为我的生活弄清楚为什么我的XML文件不起作用.它位于我的资产www文件夹中,图像的链接是正确的 - 我的应用程序的ID是相同的,但它仍然不会显示我的启动画面或图标!
救命!
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.helloword"
version = "1.0.0">
<name>Testerm Application</name>
<description>
A test application for PhoneGap
</description>
<author href="graemeleighfield@infinitegroup.co.uk" email="graemeleighfield@infinitegroup.co.uk">
Graeme Leighfield
</author>
<icon src="img/icon.png" width="72" height="72" ></icon>
<gap:spalsh src="img/ash.jpg"/>
<feature name="http://api.phonegap.com/1.0/geolocation"/>
<feature name="http://api.phonegap.com/1.0/network"/>
</widget>
Run Code Online (Sandbox Code Playgroud)
小智 7
是的,config.xml仅适用于build.phonegap.com.
在res/drawable-hdpi文件夹中使用splash.png文件名创建一个斜杠屏幕.将super.setIntegerProperty("splashscreen",R.drawable.splash)添加到App.java文件中.
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl("file:///android_asset/www/index.html");
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2468 次 |
| 最近记录: |