的WebView双击缩放不工作在摩托罗拉Droid A855 [英] WebView double tap zoom not working on a Motorola Droid A855

查看:121
本文介绍了的WebView双击缩放不工作在摩托罗拉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屋!

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