HTML page should fix all the android device -


i have tried following code fit webpage based on device screen size.

    webview mwebview=(webview)findviewbyid(r.id.webview1);     mwebview.loadurl("file:///android_asset/test/index.html");     mwebview.setinitialscale(1);     mwebview.getsettings().setloadwithoverviewmode(false);     mwebview.getsettings().setusewideviewport(true);     mwebview.getsettings().setbuiltinzoomcontrols(true);     mwebview.setscrollbarstyle(webview.scrollbars_outside_overlay);     mwebview.setscrollbarfadingenabled(false); 

in zoomcontrols working fine. webpage not fixed device screen size.
can give me suggestions...?

try adding following meta tag html file

<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" /> 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -