任何人都可以告诉如何在webview中加载超链接标记
由于
答案 0 :(得分:0)
You are overriding the loading of all URLs by forcing the WebView to load them with this code
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Log.i(TAG, "Loading...");
view.loadUrl(url);
return true;
}
The code would be something like..
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
答案 1 :(得分:0)
简单。
只需创建HTML字符串,然后使用webview.loadData(htmlString, "text/html", "utf-8");
将其加载到网页视图中。
有关详细信息,请参阅此Android doc for WebView。