IBM的工作灯:UI性能 [英] IBM Worklight: UI Performance
问题描述
我已经使用jQuery Mobile的1.3工作灯5.0.6发展。我发现了一些功能,如转换,面板和的弹出菜单是不是在真实设备顺利(三星Galaxy S3和放大器;三星附注二,安卓4.1.1)。它是穷人和显示过程中相当滞后。
由于PhoneGap的框架是用工作灯最后,我已经使用PhoneGap的创建一个相同的移动应用程序,性能明显优于使用工作灯顺畅......
我可以知道为什么会这样,是有什么办法可以改善用户界面性能?
非常感谢。
下面是code的测试应用程序:工作灯,的 PhoneGap的
快速修复这个问题的:
在你的的AndroidManifest.xml
-
替换
<支持屏...>
节点如下:
<支持屏安卓largeScreens =真正的机器人:normalScreens =真正的机器人:smallScreens =真正的机器人:调整大小=真正的机器人:anyDensity =真/>
-
替换
<使用的SDK ...>
节点<使用-SDK安卓的minSdkVersion =9机器人:targetSdkVersion =17/>
移动 直接在<支持屏>
节点<。 / P> -
添加
李>屏幕尺寸
到机器人:configChange下的主要活动
属性 -
建立对SDK版本大于3.2其中。 (点击你的Android特性 项目,然后单击在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
Replace
<supports-screens ...>
node with the following:
<supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:resizeable="true" android:anyDensity="true" />
Replace
<uses-sdk ...>
node with<uses-sdk android:minSdkVersion="9"android:targetSdkVersion="17" />
and move direct after<supports-screens>
Node.Add
screenSize
toandroid:configChange
attribute under main Activity.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屋!