What you need to do is create new folders in the res folder.
Example. If you need to add support for Spanish and Italian, you need to do it as follows:
res folder
1.1 values
1.2 values-es // spanish
1.3 values-it // italian
And after that you need to create string.xml files in values-es and values-it . And in all files, you just need to create the whole line that you want to use as follows:
<string name="title">Title</string> // in values folder <string name="title">Title in Spanish</string> // in values-es folder and etc.
And after that you can use this line as:
TextView text = (TextView) findViewById(R.id.textView); text.setText(getString(R.string.title));
And that should work.
source share