如何包装文字在Android的TextView的下一行? [英] how to wrap text to next line in android textview?
本文介绍了如何包装文字在Android的TextView的下一行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友,
我使用下面的TextView来显示它的一些数据。
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?
任何帮助将是AP preciated。
any help would be appreciated.
推荐答案
您必须设置机器人:scrollHorizontally =假
在XML
这篇关于如何包装文字在Android的TextView的下一行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文