How to fit the content to WebView in Android without enabling zooming? -


i tried setting meta tag shown below in order make content fit webview, didn't work.

<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, target-densitydpi=device-dpi, user-scalable=no\"> 

but when set following webview settings, working.

webview.getsettings().setusewideviewport(true); webview.setinitialscale(1); 

now problem webview allowing me zoom on double tap don't want. how can avoid behavior? tried setting setsupportzoom(true) in webview settings still able zoom on double tap. can please suggest me solution?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -