开发者

Other ways for zoom-in zoom-out in Android WebView?

My actual task is to have zoom in zoom out for the WebView, bu开发者_开发知识库t I don't want to scale images.

Are there ways to do that?


setting the default zoom controls is very easy:

browser.getSettings().setBuiltInZoomControls(true);

where browser is the name of your webview. This alows for double tap, pinch-to-zoom and standard zoom buttons to work out of the box. A short google search should help you find the scaling part as well. Good luck

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜