I am using following TextView
to display some data in it:
<TextView android:id="@+id/notificationText"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:textSize="18sp"
android:inputType="textMultiLine"
android:maxLines="2"
android:layout_paddingRight="20dip"
android:textColor="#ffffff"/>
I want to wrap text to next line. How can I do this?
You need to set
In Some case It works by setting width to 0dp on text views.
here is a link to original answer.
You could also try
in your XML. This worked for me.
you must set
android:scrollHorizontally="false"
in your xml.