mathew-kurian / TextJustify-Android

:page_facing_up: Android Text Full Jusiftication / Wrapping / Justify / Hyphenate - V2.0
https://github.com/bluejamesbond/TextJustify-Android/wiki
Apache License 2.0
1.86k stars 370 forks source link

No need to justify last line #126

Open saeedjassani opened 7 years ago

saeedjassani commented 7 years ago

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

saeedjassani commented 7 years ago

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

renaudboulard commented 7 years ago

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.