WebKit的嵌入与Android应用程序的新版本 [英] Embedding a newer version of WebKit with Android app

查看:135
本文介绍了WebKit的嵌入与Android应用程序的新版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的网络技术和CSS过渡开发一个Android应用程序(该应用程序的功能相当必要的,因为他们是负责滚动和滑动页面)都相当低迷。
根据在互联网上找到的信息,CSS转换是不是硬件加速,除非转化3三维。我发现有很多的文章说,我应该把-webkit-变换:translateZ(0);我的动画元素。

不过,在较旧的Andr​​oid版本的Webkit(低于3.0)不支持3D转换。

我可以嵌入的WebKit的更新版本与我的应用程序?


解决方案

  

我可以嵌入的WebKit的更新版本与我的应用程序?


在理论上,也许吧。

您将不得不完全重写的WebKit使用的东西的NDK支持输出(例如,OpenGL的),并将其嵌入您的应用程序。我估计这将花费> 100开发人员月,所以如果你有一个大的团队和配套的预算,欢迎您来试试这个。到时候你完成的工作,较旧的Andr​​oid版本会过时,你不会需要code。

因此​​,从实际情况来看,无论是重新设计的应用程序,使得CSS过渡不再是必不可少的应用程序的功能,或限制您的应用程序的Andr​​oid 3.0+,等待的Andr​​oid用户群,迎头赶上。

I am developing an Android app using web technologies and the CSS transitions (quite essential to the functionality of the app, since they're responsible for scrolling and swiping pages) are quite sluggish. According to information found on the internet, CSS transitions are not hardware accelerated unless transformed 3-dimensionally. I found many articles saying that I should put "-webkit-transform: translateZ(0);" to my animated elements.

However, the Webkit in older Android versions (below 3.0) doesn't support 3D transformations.

Can I embed a newer version of WebKit with my app?

解决方案

Can I embed a newer version of WebKit with my app?

In theory, perhaps.

You would have to completely rewrite WebKit to use something that the NDK supports for output (e.g., OpenGL) and embed it in your app. I estimate that this will take >100 developer-months, so if you have a large team and matching budget, you are welcome to try this. By the time you complete the work, the "older Android versions" will be obsolete, and you will not need the code.

Hence, from a practical standpoint, either redesign the apps such that CSS transitions are no longer "essential to the functionality of the app", or limit your app to Android 3.0+ and wait for the Android user base to catch up.

这篇关于WebKit的嵌入与Android应用程序的新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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