What I have: I’m loading image from a URL. I simply do (WebView).loadUrl(imageurl, extraheaders)
What I get: Image is not showing at full width of the WebView, it has blank space all around (like if you open a little iamge in your desktop browser)
What i tried: Setting LayoutAlgorithm to SINGLE_COLUMN. Works perfect, but zooming doesn’t work. (I have it enabled in the WebView.getSettings() Dont know why. Setting setUseWideViewPort(true); load image without any blanks space, but it is fully zoomed in.
I had the same issue and doing this worked just fine:
Edit:
As this remained as the accepted answer, here is a better solution (all credit to Tony below):