0
I have the following text::
Texto|Texto|Texto|
I want to display it in a Textview, but every "|" (pipe) it breaks the line.
In this way:
String texto = this.textoQuebrado;
String[] array = texto.split("|");
conteudo.setText(Arrays.toString(array));
Comes out like this:
|T|e|x|t|o|||T|e|x|t|o|||T|e|x|t|o||
texto.replace("|", "\n");
– user28595
@Articuno has no way without using line break ?
– rbz
In the question you say
mas a cada "|" (pipe) ele quebrar a linha.
.– user28595
It is true, I lost myself on account of sometimes the n not being recognized, but it is something else ! I traveled ! Thanks !
– rbz