Android WebView, Scaling Image to fit the screen

前端 未结 9 1131
醉梦人生
醉梦人生 2020-11-29 01:13

What I have: I\'m loading image from a URL. I simply do (WebView).loadUrl(imageurl, extraheaders)

What I get: Image i

9条回答
  •  渐次进展
    2020-11-29 02:11

    you should scale the webView to fit the screen:

     WebView data = (WebView) getViewById(R.id.webview1);
     data.getSettings().setLoadWithOverviewMode(true);
     data.getSettings().setUseWideViewPort(true);
    

提交回复
热议问题