IBM Worklight:UI 性能 [英] IBM Worklight: UI Performance
问题描述
我已将 jQuery Mobile 1.3 用于 Worklight 5.0.6 开发.我发现一些功能,例如 Transitions、面板 和 弹出菜单在真机(三星 Galaxy S3 和三星 Note II,Android 4.1.1)中不流畅.它在显示过程中很差且相当滞后.
由于Worklight 最终使用Phonegap 框架,因此我使用Phonegap 创建了一个相同的移动应用程序,并且性能比使用Worklight 的要流畅得多...
我可以知道为什么会这样,有什么方法可以提高 UI 性能吗?
非常感谢.
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
推荐答案
此问题的快速修复:
在你的 AndroidManifest.xml
将
节点替换为以下内容:<supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:resizeable="true" android:anyDensity="true"/>
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.
将 screenSize
添加到主 Activity 下的 android:configChange
属性.
Add screenSize
to android:configChange
attribute under main Activity.
针对大于 3.2 的 SDK 版本构建.(单击 Android 上的属性项目,然后点击 Android,看截图).
Build against SDK Version which greater than 3.2. (Click properties on your Android project and then click on Android, see screenshot).
再次尝试安装并运行您的 Android 应用程序.
Try to install and run your Android application again.
这篇关于IBM Worklight:UI 性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!