【发布时间】:2015-07-27 10:29:59
【问题描述】:
我的assets/html/ 文件夹中有一个header.html 文件和一个footer.html 文件。
这是我的代码,用于创建和填充我的 WebView 内容:
WebView contentView = (WebView) view.findViewById(R.id.contentView);
String contentText = Function.OBJECT.get("info").toString();
contentView.loadData(contextText, "text/html", null);
如何将contextText 与header.html 和footer.html 包装起来,并在WebView 中显示输出?
【问题讨论】:
标签: android html webview android-webview loaddata