<分区>
我有一个字符串,它将在我的下一节课中被 intentExtra 提取并设置为多行 TextView 的文本。我想知道是否有一种方法可以将文本分开,使它们位于彼此之下,所以我有这个字符串:
maint = "Here is some info about nothing." +
"Some more info about nothing." +
"And a little more about nothing";
所以通常它们会像这样显示在 textView 中:
Here is some info about nothing. Some more info about nothing. And a little more info about nothing.
有没有办法让他们在每一个单独的部分被写入 TextView 后结束该行
像这样:
Here is some info about nothing.
Some more info about nothing.
And a little more about nothing.
对于每个单独的句子使用单独的 TextView 似乎太过分了。
提前致谢