【发布时间】:2014-01-20 09:25:39
【问题描述】:
Webview wv=(WebView)findViewById(R.id.webview1);
``String str="<html>
<body>
<img src='file:///android_asset/nag.png' height='300' width='200'/>
</body>
</html>";
wv.loadData(str,"text/html","UTF-8");
【问题讨论】:
-
在我的答案中使用 BaseURL 给定代码加载 webview