Android 样式表
我们正在用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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 :)
您看过sencha吗?这可能会有所帮助。
Have you looked at sencha? It might prove helpful.