Android 样式表

发布于 2024-11-27 17:28:31 字数 340 浏览 1 评论 0原文

我们正在用 HTML5 制作我们的应用程序的一部分,以便抽象出 Android 和 iPhone 的通用功能。当用户导航到 WebView 时,我们希望它感觉我们仍在使用本机代码。

对于 iOS,我们发现了 iWebKit,它很容易导入,并为网页提供了 iPhone 的外观和感觉。但我们没有发现任何适合 Android 的东西。

我知道某些 Android 设备上的主题可能有所不同,这会使单个样式表变得复杂。但有人知道有什么好东西吗?顺便说一句,它不一定是免费的。

谢谢。

We are making parts of our application in HTML5 in order to abstract out common functionality for Android and iPhone. When the user navigates to a WebView we want it to feel like we are still using native code.

For iOS we found iWebKit, it was easy to import and gave the web page that iPhone look and feel. But we found nothing good for Android.

I know the theme on certain Android devices could be different which complicates having a single stylesheet. But does anyone know of anything good? Btw, it does not have to be free.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

月下伊人醉 2024-12-04 17:28:31

Android webview 性能很差。
我一直在 android webview 中使用 jQuery Mobile Beta1,现在我们决定移植回原生。
Native 仍然比 javacript <--> 快 300% 且稳定。 Android 2.3+姜饼中的java接口被破坏,webview和上下文之间的通信失败。

此处获取门票:http://code.google.com/p/android/ issues/detail?id=12987

我建议坚持使用 Native :)

Android webview performance is very poor.
I have been using jQuery Mobile Beta1 in android webview, now we decided to port back to native.
Native is still 300% faster and stable, where javacript <--> java interface is broken in Android 2.3+ gingerbread, communication between webview and context failure.

Ticket here: http://code.google.com/p/android/issues/detail?id=12987

I suggest to stick with Native :)

贪恋 2024-12-04 17:28:31

您看过sencha吗?这可能会有所帮助。

Have you looked at sencha? It might prove helpful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文