Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 设置连字符频率不';行不通_Android_Hyphenation - Fatal编程技术网

Android 设置连字符频率不';行不通

Android 设置连字符频率不';行不通,android,hyphenation,Android,Hyphenation,我试图在TextView中添加断掉长单词的连字号。例如,我有一个文本视图,它的文本是“推荐”。因为单词太长了,所以我想在第一行输入“推荐”,在第二行输入“推荐”,如下所示:[在此处输入图像描述][1] [1] :。但事实上,我得到了[在这里输入图像描述][1] [1] :。以下是我对TextView的看法: <TextView android:id="@+id/textViewid" android:layout_width="match_parent" android:

我试图在TextView中添加断掉长单词的连字号。例如,我有一个文本视图,它的文本是“推荐”。因为单词太长了,所以我想在第一行输入“推荐”,在第二行输入“推荐”,如下所示:[在此处输入图像描述][1]

[1] :。但事实上,我得到了[在这里输入图像描述][1]

[1] :。以下是我对TextView的看法:

<TextView
   android:id="@+id/textViewid"
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:text="@string/long_text"
   android:breakStrategy="high_quality"
   android:hyphenationFrequency="full" />

我尝试了breakStrategy值和hyphentationfrequency值的不同组合,但没有成功。 你知道为什么它会以这种或其他方式使连字号工作吗?
提前谢谢

你找到解决办法了吗?我也有同样的问题。