问题
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?
回答1:
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.
回答2:
Try presenting your text in a webkit control, its RTL support works fine, as long as the HTML code is tagged appropriately.
回答3:
Forward to 2015 - those issues are gone, and the answer marked as correct is no longer correct.
回答4:
This is fixed in CyanogenMod. I'd very much like to know which commit has the fix exactly
来源:https://stackoverflow.com/questions/2584245/android-rtl-support-digits-embedded-in-a-right-to-left-sentence-hebrew