IBM的工作灯:UI性能 [英] IBM Worklight: UI Performance

查看:166
本文介绍了IBM的工作灯:UI性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用jQuery Mobile的1.3工作灯5.0.6发展。我发现了一些功能,如转换面板和的弹出菜单是不是在真实设备顺利(三星Galaxy S3和放大器;三星附注二,安卓4.1.1)。它是穷人和显示过程中相当滞后。

由于PhoneGap的框架是用工作灯最后,我已经使用PhoneGap的创建一个相同的移动应用程序,性能明显优于使用工作灯顺畅......

我可以知道为什么会这样,是有什么办法可以改善用户界面性能?

非常感谢。

下面是code的测试应用程序:工作灯,的 PhoneGap的

解决方案

快速修复这个问题的:

在你的的Andr​​oidManifest.xml

  1. 替换<支持屏...> 节点如下:
    <支持屏安卓largeScreens =真正的机器人:normalScreens =真正的机器人:smallScreens =真正的机器人:调整大小=真正的机器人:anyDensity =真/>

  2. 替换&LT;使用的SDK ...&GT; 节点&LT;使用-SDK安卓的minSdkVersion =9机器人:targetSdkVersion =17/&GT; 移动 直接在&LT;支持屏&GT; 节点<。 / P>

  3. 添加屏幕尺寸机器人:configChange下的主要活动属性

  4. 建立对SDK版本大于3.2其中。 (点击你的Andr​​oid特性 项目,然后单击在Android上,见截图)。

尝试安装,然后再次运行Android应用程序。

I have used jQuery Mobile 1.3 for Worklight 5.0.6 development. I find that some of the functionalities such as Transitions, Panels and Popup Menu are not smooth in real device (Samsung Galaxy S3 & Samsung Note II, Android 4.1.1). It is poor and quite lag during display.

As Phonegap framework is used by Worklight ultimately, I have created a same mobile application using Phonegap and the performance is dramatically smoother than that using Worklight...

May I know why is it so and is there any way to improve the UI performance?

Thanks a lot.

Here is the code for the testing app: Worklight, PhoneGap

解决方案

Quick Fix for this issue:

In your AndroidManifest.xml

  1. Replace <supports-screens ...> node with the following:
    <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:resizeable="true" android:anyDensity="true" />

  2. Replace <uses-sdk ...> node with <uses-sdk android:minSdkVersion="9"android:targetSdkVersion="17" /> and move direct after <supports-screens> Node.

  3. Add screenSize to android:configChange attribute under main Activity.

  4. Build against SDK Version which greater than 3.2. (Click properties on your Android project and then click on Android, see screenshot).

Try to install and run your Android application again.

这篇关于IBM的工作灯:UI性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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