json ファイルから解析された html テキストと画像を含む文字列がありますwebview
。要件は、適切な配置でウェブサイトにそのまま表示することです。助けてください。webview
webview
私のJsonファイルのリンクはこれです
そして私のwebview
コードは
//newsContent contains the json string after parsing.
String all="<html><body>"+newsContent+"</body></html>";
tv.getSettings().setJavaScriptEnabled(true);
tv.getSettings().setPluginsEnabled(true);
tv.getSettings().setSupportZoom(false);
tv.getSettings().setAllowFileAccess(true);
WebSettings webSettings = tv.getSettings();
tv.getSettings().setAllowFileAccess(true);
webSettings.setTextSize(WebSettings.TextSize.NORMAL);
tv.loadDataWithBaseURL(null,all, "text/html", "UTF-8", null);