Android TextView 文字换行的问题

Android TextView 文字换行的问题 spa

 Android TextView textView.setText("aaa\nbbb");能够自动换行, .net

可是String s = "aaa\nbbb"; orm

textView.setText(s); get

就不能正常换行了,

解决: io

s = "aaa\nbbb"; top

s = s.replace("\\n", "\n"); co

textView.setText(s); 

正常了 background

相关文章
相关标签/搜索