How to wrap text in textview in Android

前端 未结 18 1133
旧巷少年郎
旧巷少年郎 2020-12-08 18:03

Does any one know how to wrap text in TextView in Android platform. i.e if the text in textview exceed the screen length it should be displayed in the second line.

I

18条回答
  •  臣服心动
    2020-12-08 18:55

    Just set layout_with to a definate size, when the text fills the maximum width it will overflow to the next line causing a wrap effect.

    
    

提交回复
热议问题