Set zoom for Webview

前端 未结 9 1162
忘了有多久
忘了有多久 2020-11-30 02:26

I have a WebView and 2 urls to open it it. What I want to do is, when i set a zoom level for 1st url, and then i go to 2nd url, it should also have the same zoom level. Righ

9条回答
  •  忘掉有多难
    2020-11-30 02:49

    this will be applicable in this scenario i believe

    mWebView.setInitialScale(ZOOM_LEVEL);
    

    where ZOOM_LEVEL for example can be 25 for 25% 150 for 150%

提交回复
热议问题