Android上的慢速页面转换,启用了硬件加速 [英] Slow page transitions on Android with hardware acceleration on

查看:148
本文介绍了Android上的慢速页面转换,启用了硬件加速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Android 4.3上运行 ionic-angular-cordova-seed 项目。 1与科尔多瓦。我注意到的一个事情是页面转换(例如,点击选项卡或列表项)非常慢。

I'm trying to run the ionic-angular-cordova-seed project on Android 4.3.1 with Cordova. One thing I've noticed is that page transitions (for example, clicking on a tab or a list item) are very slow.

我试图禁用硬件加速使用:

I tried to disable hardware acceleration using:

super.appView.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);

...它工作完美。但是,然后滚动,侧边菜单滑动和更多的动画变得非常缓慢。

... and it worked perfectly. But then scrolling, side menu sliding and more animations became extremely slow.

我试过FastClick,它没有任何区别。

I've tried FastClick, it didn't make any difference.

我发现这个基于CSS的解决方案的问题,但我不熟悉Ionic应用它。任何想法?

I found this CSS-based solution to the problem, but I'm not familiar enough with Ionic to apply it on it. Any ideas?

注意:我未使用任何动画进行页面转换。

Note: I'm not using any animations for page transitions.

推荐答案

似乎Ionic已经做了很多Android相关的修复,真的提高了性能。此外,我已经将我的Android版本分为两个版本:4.4和pre-4.4。 Pre 4.4正在使用 cordova-android-chromeview ,使其速度更快。即使它增加了〜20 MB的apk,它值得的。

It seems like Ionic has made a lot of Android-related fixes that really improved performance. In addition, I've splitted my Android version into two versions: 4.4 and pre-4.4. Pre 4.4 is using cordova-android-chromeview which makes it so much faster. Even though it adds ~20 MB to the apk, it worths it.

这篇关于Android上的慢速页面转换,启用了硬件加速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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