1
I would like to do this manually via a click, Portuguese or English language. and search for the correct string.
public Boolean onCreateOptionsMenu(Menu menu) { getMenuInflater(). inflate(R.menu.menu_main, menu); Return true; }
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
When I create the values-en folder for example, it is hidden!
– Dan Even
If you are in Android Studio it is usually hidden until you add some file inside, I usually do this by changing the display mode of the project from android to project or simply doing it manually through the Windows file explorer. Then you see in the values folder in the project a string folder, which will show your string files.
– Samuel Ives
Good! I added! now the question topic is missing.how to change from one to another.
– Dan Even
Generally Android chooses the language of your application based on its strings.xml, in the second link, the post Author shows how to create a method to change the language
– Samuel Ives