Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: RTL support - digits embedded in a right to left sentence (Hebrew)

My application displays Hebrew text which comes from a Web Service.
When a sentence contains digits (in the middle of it), the digits appear in a mirror view:
29 appears as 92, 21:45 appears as 54:12 and 2,000 appears as 000,2.
Also, when a sentence starts with digits or English characters, they get thrown to the end of the sentence messing it all up...

Does anyone have an idea how can this be solved? Is RTL support in Android still immature?

like image 460
Rob Avatar asked Apr 06 '10 10:04

Rob


3 Answers

Try presenting your text in a webkit control, its RTL support works fine, as long as the HTML code is tagged appropriately.

like image 124
VitalyB Avatar answered Nov 07 '22 17:11

VitalyB


Is RTL support in Android still immature?

If by "immature" you mean "nonexistent", then, yes, it is immature. Each Android SDK release lists the supported languages, and you will notice that RTL languages are not among them.

like image 32
CommonsWare Avatar answered Nov 07 '22 16:11

CommonsWare


Forward to 2015 - those issues are gone, and the answer marked as correct is no longer correct.

like image 1
elcuco Avatar answered Nov 07 '22 15:11

elcuco