android - Loading Webview is not filled with device screen? -


i have problem webview. not loaded full screen. have tried post answer stackoverflow couldn't solve problem (webview width , height match-parent/fill-parent tried both)

i using in html

<meta content="height = device-height,width = device-width, initial-scale = 1.0, minimum-scale = 1.0,maximum-scale = 2.0, target-densitydpi = dpi_value"/> 

and in code setting map settings well

webview.getsettings().setusewideviewport(true); webview.getsettings().setloadwithoverviewmode(true); webview.getsettings().setjavascriptenabled(true); webview.getsettings().setbuiltinzoomcontrols(true); 

i have tried support screens in manifest like

<supports-screens android:smallscreens="true" android:normalscreens="true" android:largescreens="true" android:anydensity="true" /> 

i loading add image server (image size 800x720). , image loading not other data.

add command in webview settings

webview.getsettings().setlayoutalgorithm(layoutalgorithm.normal); webview.getsettings().setloadwithoverviewmode(true); webview.getsettings().setusewideviewport(true); webview.getsettings().setjavascriptenabled(true); 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -