Android 5.0中使用webView 加载网页不显示图片问题

android.util.Log.i("url", "htmlDetails: "+url);
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowFileAccess(true);
webSettings.setSupportMultipleWindows(true);
webSettings.setJavaScriptEnabled(true);

webSettings.setDomStorageEnabled(true);



if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
    webSettings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
}

webView.loadUrl(url);

你可能感兴趣的:(Android,webview,图片不显示)