Hyphenation #41
Comments
I'm sorry for late reply. Are you setting the text outside of the ui thread? |
Hi. |
Can you provide your code that loads the data into textview? Thanks. I'll look at this tonight. |
Actually I made it very simple for testing purpose.
And the string resource: |
@muriloandrade Good find. I have fixed the bug in the latest push. I have added a test to the sample app as well. EDIT. Bugs persist. Let me fix. |
@muriloandrade Fixed |
Thank you for the fix. |
@muriloandrade It does hyphenate. I have put your exact code into the the sample demo which you can download at https://play.google.com/store/apps/details?id=com.bluejamesbond.text.sample Just click on the "Hyphenated Test" |
Hi,
I saw you made some amazing improvements in the new version of TextJustify, including the hyphenation, congratulations.
Now I’m trying to implement this new version into my project but I’m facing an issue.
If I right understand, the new way to get texts hyphenatated is:
This way, nothing happens, seems like
LayoutParams.setHyphenator()
method will always just return (without set).So I made some changes in this method and have the hyphenator settled.
But now, I’m facing an Exception:
java.util.ConcurrentModificationException
at java.util.LinkedList$LinkIterator.next(LinkedList.java:124)
at com.bluejamesbond.text.DocumentLayout.measure(DocumentLayout.java:222)
at com.bluejamesbond.text.DocumentView.onMeasure(DocumentView.java:142) …
Let me know if you need more details. Thank you.
The text was updated successfully, but these errors were encountered: