In Android Studio Zoom in WebView

0

When you click on one of the options in the menu, it shows a web page, the page is integrated into the application, how can I do it when the page is displayed on the whole page, and then I can zoom in to show it manor yo minor?

I do not know if zooming also enlarges the menus, if that is so, it could be done so that you can only zoom in on the htm page.

on the website I have also put the code:

<meta name="viewport" content="initial-scale=1.0, user-scalable=yes, width=device-width" />
    
asked by SoCu 06.12.2017 в 23:12
source

1 answer

2

You may need the following code, the first one to activate javascript and the second to activate the zoom in a webview.

webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setBuiltInZoomControls(true);
    
answered by 12.04.2018 в 17:48