Chinaunix首页 | 论坛 | 博客
  • 博客访问: 967337
  • 博文数量: 168
  • 博客积分: 3853
  • 博客等级: 中校
  • 技术积分: 1854
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-15 23:50
文章分类

全部博文(168)

文章存档

2014年(12)

2013年(46)

2012年(60)

2011年(11)

2010年(1)

2009年(17)

2008年(21)

我的朋友

分类: 系统运维

2012-10-16 10:17:07

Kendo UI Mobile Perfomance Tips and Tricks Disable HW acceleration in Android 4

In Android 4.x Google introduced OpenGL hardware acceleration in the native browser rendering routines. While this improves the native scrolling fluidity and page rendering times, it detaches the rendering from the browser. This results in a number of perfomance issues which mainly manifest themselves as hardware accelerated CSS3 transitions happening much later than invoked and even finishing later than when the corresponding transition end event is fired. Unfortunately this is unavoidable in the native browser, but in an application (e.g. in PhoneGap) the OpenGL hardware acceleration can be switched off, resulting in much faster reacting transitions, while a little choppy. To do this, open your AndroidManifest.xml and update your application activity to disable the hardware acceleration:

... <activity ... android:hardwareAccelerated="false" > ...

In order to speed up View transitions, make sure you have your data ready beforehand. For instance if you load data from a service, you can initialize your data sources while the application is still initializing, create your ListViews in a View init event handler (don't recreate them every time) and then only refresh them on View show, like this:

id="listView" data-role="listview" data-init="initList" data-show="viewShow">
阅读(805) | 评论(0) | 转发(0) |
0

上一篇:Kendo 数据绑定

下一篇:Kendo Ui TouchMove组件

给主人留下些什么吧!~~