我将尝试使用android中的loadDataWithBaseURL()方法来显示一个html文件的内容。
我只有一个包含html文件数据的字符串,名为source,然后将其传递给该方法。
例如:
我只有一个包含html文件数据的字符串,名为source,然后将其传递给该方法。
例如:
String source; //contain html tags with images
View.loadDataWithBaseURl(null,source,"text/html","UTF-8","about:blank");
视图中显示的数据很好。 我的问题是,如果我的HTML文件包含任何图片,那么我无法显示它? 我该怎么办?