02 2012 档案
摘要:In order to have a splash screen in a PhoneGap Android application you need to put your splash.png file into res/drawable-ldpi, res/drawable-mdpi, res/drawable-hdpi, res/drawable-xdpi. Where those directories represent low, medium, high and extra large dots per inch. You'll need to resize you sl
阅读全文
摘要:我用phonegap+jquery架构,在iphone的模拟器,android 2.1模拟器,还有真机2.1上都可以得到数据。 但在我的一台小米2.3上拿不到数据,查了半天不知道什么原因,也差点去写java 的xmlhttprequest 插件, 最后发现原来是加载页面的timeout时间问题。 在 super.loadUrl("file:///android_asset/www/index.html"); 上加如下代码: super.setIntegerProperty("loadUrlTimeoutValue", 70000);
阅读全文
摘要:引用以下命名空间:import android.view.Window; import android.view.WindowManager; 将onCreate事件中的setContentView(R.layout.main); 替换以下代码:this.requestWindowFeature(Window.FEATURE_NO_TITLE); //设置为没有标题栏 setContentView(R.layout.main); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, W...
阅读全文
摘要:Identifier:IDENTIFIERQualifiedIdentifier:Identifier{.Identifier}Literal:IntegerLiteralFloatingPointLiteralCharacterLiteralStringLiteralBooleanLiteralNullLiteralExpression:Expression1[AssignmentOperatorExpression1]]AssignmentOperator:=+=-=*=/=&=|=^=%=<<=>>=>>>=Type:Identifier
阅读全文
摘要:原因:实现功能的时候,存在有的页面需要登录,有的不需要登录。实现的时候,就是期望在加载页面前,检查一下登录情况,这里有两个事件 pagebeforechange 和pagebeforeshow用pagebeforeshow的话,如果需要登录,会先到目标页,然后再跳转到登录页。这里用pagebeforechange来实现需求。下面是相关代码。(function( $, window, undefined ) {functionqueryStringToObject( qstr ) { var result = {}, nvPairs = ( ( qstr || "" ).r.
阅读全文
摘要:.ui-shadow, .ui-btn-up-a, .ui-btn-hover-a, .ui-btn-down-a, .ui-body-b, .ui-btn-up-b, .ui-btn-hover-b, .ui-btn-down-b, .ui-bar-c, .ui-body-c, .ui-btn-up-c, .ui-btn-hover-c, .ui-btn-down-c, .ui-bar-c, .ui-body-d, .ui-btn-up-d, .ui-btn-hover-d, .ui-btn-down-d, .ui-bar-d, .ui-body-e, .ui-btn-up-...
阅读全文
摘要:让Eclipse在网络上来查找JSEclipse的安装文件在Eclipse里如下选择:Help > Software Updates ->Find and Install再随后打开的对话框里选择Search for new features to install,再随后打开的对话框里选择New remote site按钮,在打开的"New Update Site"中输入如下:Name:JSEclipse from Adobe LabsURL :http://download.macromedia.com/pub/labs/jseclipse/autoinstal
阅读全文
摘要:在phonegap 中是可以使用jquery 的$.ajax 来实现跨域的,但仅仅是这样是不够的,还需要在项目/Supporing Files/PhoneGap.plist 的ExternalHosts 中添加一项,把你要跨的域名或者ip加入。
阅读全文
摘要:Q:如何取到data-role 对象:使用jqmData , 以下是取footer的例子。var footer = $("div:jqmData(role='footer')");
阅读全文

浙公网安备 33010602011771号