I want to add formatted text (can be in html) on my TextView screen but I'm not getting it.
I have the string in the values:
<string name="lbl_explicacao">
<![CDATA[
<b> TESTE </b>
TESTE
TETES
]]>
</string>
I have this Html.fromHtml(String, flags)
, but I do not know how to use it
The text that I want to do is kind of big, with 283 words, but I would like to format the title and such ..
I tried to use the string
<string name="lbl_explicacao"> <![CDATA[
<b>What is Lorem Ipsum?</b>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.]]>
</string>
But when I try to compile it shows
<string name="lbl_explicacao">
<b> bla bla bla </b>
....
</string>