Resvaluesstringsxml

Contains English text for all the strings that the application uses, including text for a string named title.

2. res/values-fr/strings.xml Contain French text for all the strings, including title.

3. res/values-ja/strings.xml Contain Japanese text for all the strings except title.

If your Java code refers to R.string.title, here is what will happen at runtime:

• If the device is set to any language other than French, Android will load title from the res/values/strings.xml file.

• If the device is set to French, Android will load title from the res/values-fr/strings.xml file.

Notice that if the device is set to Japanese, Android will look for title in the res/values-ja/strings.xml file. But because no such string is included in that file, Android will fall back to the default, and will load title in English from the

0 0

Post a comment