user3860990 user3860990 - 9 months ago 32
Android Question

How to format text in string displayed in TextView

I'm trying to format text in string, which is displyed in


<string name="register"> <p align="center"><u><b><i>Something</i></b></u></p>
<p align="right">Blablabla</p>

Underline, bolt and italics are working, but new paragraph and align isn't. Am I doing something wrong? Is there some other tag for end of a paragraph/new line?


Refer here

Not all html tags are supported in android. As per the link only the following tags are supported:

<a href=””></a>

Also refer here Which HTML tags are supported by Android TextView? Another reference is here