I have two files: strings.xml (my native language) and string2.xml (English language).
Is there a way to, on button click, load one of these files?
For example, on button click if I use file strings.xml then change the default to string2.xml. Or if I use string2.xml, then on click change to string.xml.
use the above code to update Locale of the app. Just have two folders in res as values-en and values-yournativelanguge and place your string.xml in each folder with name string.xml .
Refer this LINK