Reputation: 13165
Could anyone tell me how to start new line with space for next line in Html.fromHtml
for text view in android?
I used <br>
tag for next line; I can't achieve to give space because
will not support in Html.fromHtml
. can aybody tell is ther any other way to achieve this?
Upvotes: 15
Views: 157211
Reputation: 213
use <br/>
tag
Example:
<string name="copyright"><b>@</b> 2014 <br/>
Corporation.<br/>
<i>All rights reserved.</i></string>
Upvotes: -5
Reputation: 213
Enclose your text in
--Here-- with the space you want in new line.
save it in a String variable then pass it in Html.fromHtml().
Upvotes: -2
Reputation: 3614
Did you try <br/>
, <br><br/>
or simply \n
? <br>
should be supported according to this source, though.
Upvotes: 25