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的,然后图片显示不出来,可以尝试这样解决。
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…