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

Some changes for Right-To-Left languages #22

Closed miladrasooli closed 10 years ago

miladrasooli commented 10 years ago

I modified some lines for RTL languages like Persian or Arabic

mathew-kurian commented 10 years ago

Can you try add an option so you can switch between the two?

miladrasooli commented 10 years ago

Hi, I added the ability to switch between alignments . I have tested this code on my Nexus 7 2013 with 4.4.2 android version and it is fine. It also works fine on 4.4.2 simulator. But On Samsung galaxy grand with android 4.2.1 there was a problem with space between words. I will work on it as soon as I can reach that phone.I hope you could give me some advice about this problem.

P.S : If you could do something about getMaxLines() and make the code work for <16 api , it would be great. Thank you.

mathew-kurian commented 10 years ago

Sounds good. I will work on those things as you said. Just mark it as an issue and I will get around it soon. I have exams going on so it is challenging to work on this at the same time.