Add newlines to a text resource in Android?
Posted
by shmuelp
on Stack Overflow
See other posts from Stack Overflow
or by shmuelp
Published on 2010-03-24T01:13:06Z
Indexed on
2010/03/24
1:43 UTC
Read the original article
Hit count: 236
I have a custom Dialog
that contains only a TextView
to display some text in my application. The documentation lists that only the b
, i
, u
, tt
, big
, small
, sup
, sub
, and strike
tags are supported. I really need to add some newlines for readability. Do I need to change to a more complicated layout, or is there some way to encode newlines in the resource? I tried adding br
tags, but that did not help.
© Stack Overflow or respective owner