UMAR UMAR - 2 years ago 1046
Android Question

how to wrap text to next line in android textview?

friends,

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"

/>


now i want to wrap text to next line any one guide me what is the solution?

any help would be appreciated.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download