Good afternoon.

There is a ScrollView with many clickable TextViews. The text is justified by using the JustifiedTextView library. The size of the text is quite large, so the intervals between words are also large, which negatively affects the comfort of reading. The question is, how can you translate words by syllables?

For several days, to no avail google with different requests. It seems that either no one needs a hyphenation in words, or the question is so trivial that no one asks it.

Tell me: where to dig?

Here is the markup being tested (I use styles in the original):

<ScrollView android:layout_width="wrap_content" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <com.uncopt.android.widget.text.justify.JustifiedTextView android:id="@+id/textView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/stringOne" android:textSize="30sp" android:hyphenationFrequency="full" /> <TextView android:id="@+id/textView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/stringTwo" android:textSize="30sp" android:hyphenationFrequency="normal" /> </LinearLayout> 

compileSdkVersion 26

buildToolsVersion '28 .0.3 '

minSdkVersion 23

targetSdkVersion 26 I'm testing on meizu with the 7th android

  • Well ... Here, for example, they ask the opposite - how to disable it: stackoverflow.com/a/45489409/3212712 Maybe you have something wrong with the text field settings? Show the markup and tell what version of the OS you are running. - Yuriy SPb
  • github.com/mfietz/JHyphenator is the implementation of the common word division algorithm for hyphenation, as I understand it. I didn’t bother with it myself; I can’t tell anything else, but I’ll probably have to dig there - Yellastro

0