0
我的TextView顯示字符串這樣刪除斷線
apple
some break line
banana
some break line
grape
potato
some break line
我想知道加入這一切的話,像這樣
apple
banana
grape
potato
carrot
我使用的唯一一次破線更換所有,但犯規的作品
food = food.replace("\n", "").replace("\r", "");
什麼是你得到 – DreadfulWeather
例如字(4斷線)等字斷線的結果。我想刪除多餘的突破線 –
你能更準確地顯示你的結果嗎?例如, –