【发布时间】:2016-02-02 19:36:39
【问题描述】:
我使用 json 处理 web 服务,我得到了 html 格式的文本。我希望我的文本有超链接和一些其他属性,我可以从 html 标签(等粗体)中找到。
我尝试在 WebView 源中绑定我的 html 字符串,但 WebView 每次都是空白的。我用这个代码
var browser = new WebView();
var htmlSource = new HTMLWebViewSource();
htmlSource.Html = MyItem.Article;
browser.Source = htmlSource;
MyItem.Article 字符串是这样的
我想在 Label 里面有这样的东西,在 ListView os 里面是这样的东西。
我该怎么做?
【问题讨论】:
-
看看this article,有帮助吗?
-
我使用 xamarin 表单(ios 和 android),这仅适用于 android
标签: c# json regex xamarin xamarin.forms