Android Enables automatic font switching in multiple languages
After an android project is created, the default res Directory includes layout, values, drawable, and so on.
These are the default resource file directories of the program. To implement the multi-language version, we need to add the corresponding resource files for the implementation language.
First, click the Add Android Xml File button, select the Values single region, and enter the File name: string. xml, as shown in the following figure:
Add the Region in the left list to the list on the left, and enter cn in the Region input box, as shown in figure
We also add the Language to the list on the right and enter zh, as shown in figure
Click the Finish button and the resource file will be created. Directory: res \ values-zh-rCN (in fact, the above operations are to generate this directory)
The same is true for other languages: