1. The following properties can be used when setting the scale of the Web page:
Mwebview.setinitialscale (25);//25%, Minimum zoom level WebSettings setting = Mwebview.getsettings (); Setting.setjavascriptenabled (true); Setting.setbuiltinzoomcontrols (true); Web.loadurl (Murl);
WebSettings mwebsettings=mwebview.getsettings (); Mwebsettings.setbuiltinzoomcontrols (true); Support page Zoom-out button Mwebsettings.setsupportzoom (true);
2.
/Unlimited Zoom
Webview.getsettings (). Setusewideviewport (True); Set this property to scale any scale.
Note: 1, the initial scaling value can be set as follows: Webview.setinitialscale (Initalvalue);
2, after scaling, to adapt the content of the screen, not outside the screen display, to achieve line wrapping. This effect should be controlled by HTML rather than WebView. For example <p style= "Word-break:break-all" >test</p> implement Wrap.
Android WebView Summary