Adding a Localization Folder to the App’s Project

Before you can add a localized version of the Welcome app’s strings.xml file that contains Spanish strings, you must add the values-es folder to the project. To do so:

1. In the IDE’s Package Explorer window, right click the project’s res folder and select New > Folder to display the New Folder dialog.

2. In the dialog’s Folder name: field, enter values-es, then click Finish.

You’d repeat these steps with an appropriately named values-locale folder for each language you wish to support.

Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.