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 369 forks source link

last line when textFormat="formatted" #127

Open CompositionCloud opened 8 years ago

CompositionCloud commented 8 years ago

Hello,

The last line is automatically justified when using textFormat="formatted". I've seen in another issue here that you suggest to use the JustifiedSpan. The problem with that is I cannot know in advance how long the last line will be, and the span must consist of the entire line (so setting it just to the last character/word won't help). When using textFormat="plain" it works well. I've attached 2 screenshots, so you can see the difference.

Please let me know if there's something I got wrong. If you have any idea of how to solve it, I would be extremely thankful.

Goni

screenshot_20161008-083618 | screenshot_20161008-084909

mathew-kurian commented 8 years ago

@gkrishnan

ericmguimaraes commented 7 years ago

+1

zuraba commented 7 years ago

any update??