慢页面过渡在Android上的硬件加速 [英] Slow page transitions on Android with hardware acceleration on

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

问题描述

我试图运行离子-角科尔多瓦种子在Android项目4.3.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.

我发现这个<一href="http://coenraets.org/blog/2013/03/hardware-accelerated-page-transitions-for-mobile-web-apps-phonegap-apps/"相对=nofollow>基于CSS的解决方案的问题,但我还没有与离子熟悉运用它了。任何想法?

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.

推荐答案

好像离子已经做了很多的Andr​​oid无关的修补程序,真正提高了性能。另外,我已经分裂我的Andr​​oid版本分为两个版本:4.4和pre-4.4。 pre 4.4使用科尔多瓦,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天全站免登陆