Hebrew - english layouts selction in android application
What is the best way to provide the ability to 开发者_如何学Cswitch between hebrew/english layouts in Android applications?
Is it commonly done - or usually just providing hebrew or english applications. I know there is abikty to use localiztions - but is there Hebrew support for this? Also my application should be for iPhone as well and I want to keep it the same.
How should do it in the code? Where to place the layouts?
Yoav
For orientation (right-to-left) you need: android.text.Layout.Direction
A hebrew TrueTypefont can then be called from a resource in your app by including TextView. Instead of pushing 2 layout files you could use a class for hebrew and another for english... or you could push the text to string values file for highest cleanliness
If it is a block of text that could be called from resource txt file (practical for prayers) It all depends on how much text you have.
精彩评论