How to force hyphenation in TextView? (character “-” on word split)

岁酱吖の 提交于 2019-12-10 21:53:16

问题


I'm using a TextView extension class which writtes a String like a type writter, character per character. It works fine but when is writting a workd which not fit in the current line, it makes a annoying behaviour and deletes the non fitting workd from the current line and writtes it into the next line.

Welcome all. I need to know how to tell a TextView to use Hyphenation, it must force word breaks like this:

superlargewo-
rd

verylarg-
eword

It means putting character - instead of passing the workd to the next line

How can that be force into TextView?

Thanks

来源:https://stackoverflow.com/questions/42215037/how-to-force-hyphenation-in-textview-character-on-word-split

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!