[英]How to change HTML code in WebView (Monodroid)
WebView webView = FindViewById<WebView>(Resource.Id.webView1);
webView.HorizontalScrollBarEnabled = false;
webView.LoadUrl("res.htm");
如何更改文件中的某些HTML代碼並在不更改物理文件的情況下使用webView顯示它?
您可以使用此代碼將html作為字符串加載。
var htmlView = new WebView(context);
htmlView.LoadData(htmlMarkup, "text/html", "utf-8");
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.