XML设置WebView
代码调用
//Html字段 String IMAGE3 = ""; webView.getSettings().setDefaultTextEncodingName("utf-8"); webView.loadDataWithBaseURL(null, IMAGE3, "text/html", "utf-8", null); webView.setWebViewClient(new WebViewClient());
XML设置WebView
代码调用
//Html字段 String IMAGE3 = ""; webView.getSettings().setDefaultTextEncodingName("utf-8"); webView.loadDataWithBaseURL(null, IMAGE3, "text/html", "utf-8", null); webView.setWebViewClient(new WebViewClient());
转载于:https://my.oschina.net/u/3698786/blog/1806126