New line after space
Is there a way to have a TextView that adds a new line after each space charact开发者_C百科er in the text? For example, the text "one two three" should be displayed on 3 lines.
Can't you modify the text before it's added to the ListView
to translate whitespace to newline?
String text = "one two three";
text.replaceAll("\\s", "\n");
精彩评论