Reputation: 4703
Is there a way to have a TextView that adds a new line after each space character in the text? For example, the text "one two three" should be displayed on 3 lines.
Upvotes: 0
Views: 931
Reputation: 122458
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");
Upvotes: 2