Chapter 27. Going Local – Hola!
This chapter is short and simple, but here you will learn to make your app accessible to millions of potential users. In this chapter, we will see how to add additional languages. This is made really easy because we have been using String resources for the text in our app.
In this chapter, we will:
- Learn the basics by building a very simple app that uses English, Spanish, and French
- Add Spanish to the Where it's Snap app by adding a single text file
The Localization mini app
Create a new project and call it Localization
. Keep all the project settings at their default values. We don't need to do any Java coding for this project.
Preparing the layout
Edit the
activity_main
layout file by copying and pasting the following ...
Get Android Programming for Beginners 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.