android - 有没有 webview 的替代品?

标签 android android-webview

我有一个应用大量使用 webview。我的要求是能够查看 html 并将 javascript 注入(inject)正在加载的页面,甚至是 iframe。我已经使用 android 附带的 webview 完成了这项工作,但效果并不好。

那么还有其他项目可以提供相同的 html5 浏览体验但对开发人员更友好吗?是否有可能采用开源 Web View 代码并构建我自己的代码,或者这只是一个疯狂的想法?

谢谢。

最佳答案

看看Crosswalk . 如其网站所述:

With the platform variations in the market you are forced to assume that every Android WebView works differently. There are differences in:

  • Which JavaScript APIs are available
  • Support and syntax for CSS properties
  • How your application's interface is rendered …and plenty

more. You want to support as many versions of Android as possible, but it’s frustrating and time consuming.

There’s a better way. What if the only WebView you had to worry about was up to date with the latest version of Google Chromium? With Crosswalk, you can:

  • Develop around device fragmentation
  • Provide a feature rich experience on all Android 4.x devices
  • Easily debug with Chrome DevTools Improve the performance of your HTML, CSS, and JavaScript

关于android - 有没有 webview 的替代品?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22459735/

相关文章:

android - 创建 PhoneGap 3.0.0 项目错误 - 'platform add android' 我不是节点

java - ListView 不显示 - Android 工作室

Android:想要在用户向上滚动时在顶部显示布局并在 webview 中向下滚动时隐藏

Android Scroll Webview 可编辑到光标 - 软键盘

java - Android Webview 不加载 url

java - 从火力地堡检索数据

java - Android - Eclipse : Syntax error on token "(", 此标记后应有表达式

android - 如何从网站中选择 TextView 作为android Web View 中的默认 TextView ?

android - 在 IntentService 类中使用 Binder 和 onHandleIntent 的区别

具有 WebView 的 Android ViewPager 未显示具有样式的嵌入图像