webview不能显示微信文章里的图片问题
webView.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
官方是这么说的:
In this mode, the WebView will allow a secure origin to load content from any other origin, even if that origin is insecure. This is the least secure mode of operation for the WebView, and where possible apps should not set this mode.
总之,遇到网页链接是https的,但是一些资源(图片)的链接是http的,然后图片显示不出来,可以尝试这样解决。