Created
July 18, 2016 12:55
-
-
Save tomgilder/a8de5b163375f8a423aff0db2d578514 to your computer and use it in GitHub Desktop.
Xamarin.Android set HTML in TextVIew extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class TextViewHtmlExtention | |
{ | |
public static void SetHtml(this TextView textView, string html) | |
{ | |
textView.SetText(Html.FromHtml(html), TextView.BufferType.Spannable); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment