How to wrap text in textview in Android

前端 未结 18 1112
旧巷少年郎
旧巷少年郎 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:44

    The trick is with the textView width, try to make it dedicated number like:

    
    

    I've tried many solutions without any result, I've tried:

        android:ellipsize="none"
        android:scrollHorizontally="false"
    

    the only one thing triggred the wrap option is the dedicated width

提交回复
热议问题