I know there has been A LOT of talk here regarding justifying text in Android. But Android O just came out and a new feature came out with it, Text Justification. They say use the final JUSTIFICATION_MODE_INTER_WORD
included with the TextView
class. Along with setJustificationMode()
. it does work when I use it with the English language, but it fails to work when I use it with the Hebrew language. I have it set up to:
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:justificationMode="inter_word"
android:text="@string/ahahvaRabba"
android:textDirection="rtl"
/>
I also tried to put android:gravity="right"
but that didnt work either.
I cant imagine that google didn't think of using it with other languages.