how to setup property in string.xml?
i want to create an application in android ,for two country like U.S. or Japan.
my problem is that ,In my login or Registration forms labels are designed for once and use for both senario(countries).
This make sence by String.xml file . but how can ?
If any body kn开发者_StackOverflow中文版ows then please give me idea.
Thanks in advance.
Create sub folders for different locale in the res
folder.
Example:
res/values
res/values-in
res/values-fr
Copy strings.xml into those folders. One file per folder.
After that, change the languages for each strings.xml in respective to the folder. e.g., values-in for Indonesia, values-fr for France, etc.
Read this guide to further more explanation: Android Localization
精彩评论