我下面的这段代码处理了我的问题的文本视图:
<TextView
android:id="@+id/textquestion"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:layout_margin="5dp"
android:gravity="center"
android:text="Your Question Display Hear....Your Question Display Hear....Your Question Display Hear....Your Question Display Hear...."
android:textColor="@color/white"
android:textSize="20sp"
android:textStyle="bold"
android:scrollHorizontally="false"/>
但是,我注意到了一些东西。有时,如果单词到达末尾且不合适,则不将单词向下移动到下一行,而是使用-将单词分解。
This is an example test to show that th-
is text breaks as you can see and not
move the word down to the next line.
为了能够自动换行,我需要在上面的xml中包含什么?
试试看
android:breakStrategy="simple"
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句