2
我有一个header.html
文件& a footer.html
文件在我的assets/html/
文件夹中。使用LoadUrl在Android的WebView中使用LoadUrl包装内容
这里是我的代码来创建和填充我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
输出?