Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextView gravity not working with Hebrew

I have TextView on Hebrew that i want to be on the right side, so i'm doing

<TextView....
    android:gravity="right"
</TextView>

On some phones it will be aligned to right and on some it will be aligned to left. I think it depends on some phone configuration. How i can fix it ??

Thanks.

like image 631
Butters Avatar asked Apr 05 '11 19:04

Butters


1 Answers

This might be an issue. If it's not in the Android's issue page consider reporting it.

For now you can try fixing it placing the TextView inside a ViewGroup. Use wrap_content and layout_gravity to place it correctly inside it's parent.

like image 121
Macarse Avatar answered Sep 22 '22 14:09

Macarse