mathew-kurian/TextJustify-Android

No need to justify last line

saeedjassani opened this issue · 2 comments

Hello and thanks for such a wonderful library.
Unfortunately I am facing an issue here.
When I justify the text, I don't want to justify the last line as it distorts it (also doesn't look good too).
Below are the screenshots of two last lines (english and arabic). Please let me know if you can help
screenshot_20160908-082257
screenshot_20160908-075211

forgot to mention that last line of arabic text (RTL) should be aligned right and that of english text (LTR) should be aligned left

I face the same issue.
A work around is to add an extra <br>at the end of your string and used Html.fromHtml(String source) to set your text.