Prevent word-break in a TextView

From api 23 you can choose the break strategy and that should fix your issue.

By default android for TextView use BREAK_STRATEGY_HIGH_QUALITY and that is causing the words breaking using hyphens.

If you want to avoid that, you can set the break strategy to BREAK_STRATEGY_SIMPLE.

You can find more information in the api doc.

I hope that helps you.

Leave a Comment