官方示例参数比较少,这里整理记录下来以后使用。

<?xml version=’1.0′ encoding=’utf-8′?>
<widget id=”com.uxword.levone” version=”1.0.0″ xmlns=”http://www.w3.org/ns/widgets” xmlns:gap=”http://phonegap.com/ns/1.0″>
<name>uxword</name>
<description>
Hello World sample application that responds to the deviceready event.
</description>
<author email=”support@phonegap.com” href=”http://phonegap.com”>
levone
</author>
<preference name=”permissions” value=”none” />
app优先级
<preference name=”orientation” value=”default” />
是否支持旋转
<preference name=”target-device” value=”universal” />
目标设置:手机、平板、普遍
<preference name=”fullscreen” value=”true” />
全屏支持
<preference name=”DisallowOverscroll” value=”true” />
关闭拖动到最上下的回滚动作
<preference name=”BackgroundColor” value=”0xffff6600″/>
背景颜色
<preference name=”HideKeyboardFormAccessoryBar” value=”true”/>
隐藏键盘状态栏
<preference name=”prerendered-icon” value=”true” />
预渲染-只对ios
<preference name=”stay-in-webview” value=”false” />
如果使用一个非本地服务器,那么也可修改此处的安全策略。默认的安全策略是阻止所有网络访问。然后可以声明access特定网络域和子域的访问权限。
<preference name=”ios-statusbarstyle” value=”black-opaque” />
ios状态栏是否半透明
<preference name=”detect-data-types” value=”true” />
使用ios系统数据格式
<preference name=”exit-on-suspend” value=”false” />
iso系统是否响应home按键
<preference name=”show-splash-screen-spinner” value=”true” />
显示启动屏幕旋转
<preference name=”auto-hide-splash-screen” value=”true” />
iso开机画面必须使用js隐藏
<preference name=”disable-cursor” value=”false” />
禁用黑莓的鼠标图标
<preference name=”android-minSdkVersion” value=”7″ />
android最低版本
<preference name=”android-installLocation” value=”auto” />
android安装目录
<preference name=”KeepRunning” value=”false”/>
是否后台运行
<preference name=”ErrorUrl” value=”error.html”/>
htpp请求400-500显示的页面
<preference name=”LoadingDialog” value=”Please wait, the app is loading”/>
启动时显示的内容
<preference name=”LoadingPageDialog” value=”Please wait, the data is loading”/>
加载子页面时显示的内容
<preference name=”LoadUrlTimeoutValue” value=”20000″/>
超时时间,20秒
<icon src=”icon.png” />
程序图标,后面是根据系统及分辨率加载不同图标
<icon gap:density=”ldpi” gap:platform=”android” src=”res/icon/android/icon-36-ldpi.png” />
<icon gap:density=”mdpi” gap:platform=”android” src=”res/icon/android/icon-48-mdpi.png” />
<icon gap:density=”hdpi” gap:platform=”android” src=”res/icon/android/icon-72-hdpi.png” />
<icon gap:density=”xhdpi” gap:platform=”android” src=”res/icon/android/icon-96-xhdpi.png” />
<icon gap:platform=”blackberry” src=”res/icon/blackberry/icon-80.png” />
<icon gap:platform=”blackberry” gap:state=”hover” src=”res/icon/blackberry/icon-80.png” />
<icon gap:platform=”ios” height=”57″ src=”res/icon/ios/icon-57.png” width=”57″ />
<icon gap:platform=”ios” height=”72″ src=”res/icon/ios/icon-72.png” width=”72″ />
<icon gap:platform=”ios” height=”114″ src=”res/icon/ios/icon-57-2x.png” width=”114″ />
<icon gap:platform=”ios” height=”144″ src=”res/icon/ios/icon-72-2x.png” width=”144″ />
<icon gap:platform=”webos” src=”res/icon/webos/icon-64.png” />
<icon gap:platform=”winphone” src=”res/icon/windows-phone/icon-48.png” />
<icon gap:platform=”winphone” gap:role=”background” src=”res/icon/windows-phone/icon-173.png” />
<gap:splash gap:density=”ldpi” gap:platform=”android” src=”res/screen/android/screen-ldpi-portrait.png” />
程序启动时显示的图片(必须添加闪屏插件才可以使用),后面是根据系统和分辨判断的图片大小
<gap:splash gap:density=”mdpi” gap:platform=”android” src=”res/screen/android/screen-mdpi-portrait.png” />
<gap:splash gap:density=”hdpi” gap:platform=”android” src=”res/screen/android/screen-hdpi-portrait.png” />
<gap:splash gap:density=”xhdpi” gap:platform=”android” src=”res/screen/android/screen-xhdpi-portrait.png” />
<gap:splash gap:platform=”blackberry” src=”res/screen/blackberry/screen-225.png” />
<gap:splash gap:platform=”ios” height=”480″ src=”res/screen/ios/screen-iphone-portrait.png” width=”320″ />
<gap:splash gap:platform=”ios” height=”960″ src=”res/screen/ios/screen-iphone-portrait-2x.png” width=”640″ />
<gap:splash gap:platform=”ios” height=”1024″ src=”res/screen/ios/screen-ipad-portrait.png” width=”768″ />
<gap:splash gap:platform=”ios” height=”768″ src=”res/screen/ios/screen-ipad-landscape.png” width=”1024″ />
<gap:splash gap:platform=”winphone” src=”res/screen/windows-phone/screen-portrait.jpg” />
<access origin=”*” />
可访问的域权限,如:http://www.uxword.com/*
</widget>