Android WebView, Scaling Image to fit the screen

前端 未结 9 1130
醉梦人生
醉梦人生 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:04

    This work for me: webView = (WebView) findViewById(R.id.webView); WebSettings webSettings = webView.getSettings(); webView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);

提交回复
热议问题