的WebView双击缩放不工作在摩托罗拉Droid A855 [英] WebView double tap zoom not working on a Motorola Droid A855
问题描述
Zoomin在我的WebView不会双重标签的工作。 我使用的摩托罗拉Droid A855。
Zoomin in my webview will not work on a double tab. I am using Motorola Droid A855.
推荐答案
这在Android 2.0 / 2.1源$ C $ C一些挖,好像双水龙头,除非你打开的WebView的WebSettings'useWideViewport选项被忽略
From some digging in the Android 2.0/2.1 source code, it seems like double-taps are ignored unless you turn on the webview's WebSettings' useWideViewport option:
mywebviewinstance.getSettings().setUseWideViewPort(true)
不过这似乎没有被记录在任何地方,我可以找到,并且对web视图的MAX-缩小的状态,一些其他的影响。
though this appears not to be documented anywhere that I can find, and has some other effects on the max-zoomed-out state of the WebView.
您也可以随时推出自己的双击操作与GestureListener了。
You can also always roll your own double-click handling with a GestureListener, too.
这篇关于的WebView双击缩放不工作在摩托罗拉Droid A855的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!