Issue
I have the next problem:
When I add a new folder called "values-en" and I move the strings.xml file from the default folder "values" to that "values-en", I always get the next error:
Couldn't resolve resource @string/my_string
I have cleaned the project and refresh and the warning is always there.
Is there any restriction where I must always have a strings.xml in the device folder "values"?
Someone has experimented the same?
Thanks in advance
Solution
You must have the values folder. To support multiple languages you can add the other values folders (values-en, values-fr, etc). In the default values folder you declare your strings in your app's default language and in values-en the same strings but with their english translation.
Answered By - Federico Perez
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.