Answer the question
In order to leave comments, you need to log in
How to display formatted text in TextView?
There is a server and two clients - a browser and an android application. Work with one API.
For one of the requests, the server returns a text of the form
Lorem ipsum <span class="text-success">dolor</span> sit amet..
Html.fromHtml()
, but how to explain to him that class="text-success"
this is green text?
Answer the question
In order to leave comments, you need to log in
You need to make a SpannableString from the source text:
developer.alexanderklimov.ru/android/theory/spanna...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question