How to zoom in/out the content of a WebView progra

2019-07-08 05:16发布

问题:

I am trying to programmatically zoom in/out the content of a WebView object in my app. But I can't find a nice way to do this. Can anyone give me some help? It's better if there can be some code samples:)

回答1:

Finally, lollypop supports zoomby(), but under API 21 zoomin/zoomout are only ways.