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

相關文章
相關標籤/搜索