Android WebView Responsive While Zooming -
the font size , image in webview able zoom, not responsive screen. expected fit on width of 100%. not applicable on android 5.0 lollipop , above. tried on kitkat device, worked. i'm wondering should in order make works on 5.0 , above.
i did configure meta tag of webpage:
< meta name="viewport" content="width=device-width, initial-scale=1" />
the following configurations have applied on webview:
webview wv1 = (webview) findviewbyid(r.id.webview); wv1.setwebviewclient(new mywebviewclient()); wv1.getsettings().setloadsimagesautomatically(true); wv1.getsettings().setjavascriptenabled(true); wv1.getsettings().setloadwithoverviewmode(true); wv1.getsettings().setusewideviewport(true); wv1.getsettings().setloadwithoverviewmode(true); wv1.getsettings().setsupportzoom(true); wv1.getsettings().setbuiltinzoomcontrols(true); wv1.getsettings().setdisplayzoomcontrols(false);
Comments
Post a Comment