How to wrap text to next line in an Android TextView?

微笑、不失礼 提交于 2019-11-30 10:52:00

you must set android:scrollHorizontally="false" in your xml.

You could also try

android:inputType="textMultiLine"

in your XML. This worked for me.

vikas kumar

In Some case It works by setting width to 0dp on text views.

android:layout_width="0dp"

here is a link to original answer.

Aliya

You need to set

 android:minLines="2"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!