I have a textview that should display its content with HTML formatting. From the code, this can be done as follows:
textView.setText(Html.fromHtml(someText));
Is there any way to do this through XML?
I ask because I do not want to set the text through the code. In my case, the text comes from the database call and is displayed through the adapter.
source
share