Skip to content Skip to sidebar Skip to footer

How To Wrap Text To Next Line In An Android TextView?

I am using following TextView to display some data in it:

Solution 1:

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


Solution 2:

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

android:layout_width="0dp"

here is a link to original answer.


Solution 3:

You could also try

android:inputType="textMultiLine"

in your XML. This worked for me.


Solution 4:

You need to set

 android:minLines="2"

Post a Comment for "How To Wrap Text To Next Line In An Android TextView?"