IBM Worklight: UI Performance

倾然丶 夕夏残阳落幕 提交于 2019-11-27 03:00:45

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/15732828/ibm-worklight-ui-performance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!