We are writing an application with Hebrew.
When we come to run it on 2 different phones we get different alignment. Even though we have gravity set to right - one goes to the left. Both are Samsung and both are 2.3.3.
The locale for both (as given by getDefault()) is "he".
The only difference we have noticed is that in the one that works, when you go into the settings screen the text is right justified (as it should be). When you go into the one that is bad then also in the settings screen it is justified wrongly.
Anyone else working in Hebrew got any experience in this problem?
Ideas from anyone would be welcome.
Its a known problem, with no real solution.
If the text is a single line, set its width to "wrap_content" and align the field itself to the left.
For multiline fields try to center the text (if your designer would allow it...)
Finally, you can do what yNet did - put in the settings "check this if Hebrew is not aligned right" and change the fields gravity in you code accordingly.
In general, I suggest not to force gravity on the field (unless you use the Settings option) - let the system decide the right direction. (What can we do if Samsung screw up with text direction?!?!?)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With