1
WebView webView = FindViewById<WebView>(Resource.Id.webView1);
webView.HorizontalScrollBarEnabled = false;
webView.LoadUrl("res.htm");

如何更改我的文件中的一些 HTML 代码并在不更改物理文件的情况下使用 webView 显示它?

4

1 回答 1

0

您可以使用此代码将 html 作为字符串加载。

var htmlView = new WebView(context);
htmlView.LoadData(htmlMarkup, "text/html", "utf-8");
于 2013-02-05T09:48:04.783 回答