Mayur More Mayur More - 28 days ago 19
Android Question

Android localization arabic language

There is localization available in android for various language strings.
I need to localize layouts for arabic language.
Example:
In English my layout is:
Name (TextField): Name(EditText)
But for arabic it will be:
Name (EditText): Name(TextField)
Is there a way for this in android, or do I have to make a different layout to localize Arabic language.

Answer

Seems you are looking for this recently added to Android: http://android-developers.blogspot.de/2013/03/native-rtl-support-in-android-42.html

Probably earlier versions of Android you need to implement some logic here on you're own. See here the next link for suggestions: http://developer.android.com/guide/topics/resources/localization.html

This way you can probably have a arabic specific layout, explained in section "Design a flexible layout". And see the following website for the localization code: http://colincooper.net/blog/2011/02/17/android-supported-language-and-locales/

Comments