Articles → Android → Support multiple languages in an android application

Support multiple languages in an android application






Scenario





Steps

















Add a new strings file in values folder






Picture showing add the value resource group file inside the project

Click to Enlarge



Picture showing the popup window for adding the new resource file

Click to Enlarge







Picture showing the popup window for adding the details of the resource file

Click to Enlarge





Picture showing the resource files added in the strings folder

Click to Enlarge


Add a string for French language




Picture showing adding a string inside the strings.xml file

Click to Enlarge


Add a textview in main activity that displays the text




Picture showing adding a textview inside the main activity

Click to Enlarge


Run the application with default language settings




Picture showing running the application with the default settings

Click to Enlarge


Run the application with French language settings






Picture showing running the application with the french settings

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, October 28, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250