Skip to Main Content
Android Programming with Kotlin for Beginners
book

Android Programming with Kotlin for Beginners

by John Horton
April 2019
Beginner to intermediate content levelBeginner to intermediate
698 pages
15h 15m
English
Packt Publishing
Content preview from Android Programming with Kotlin for Beginners

Chapter 18. Localization

This chapter is quick and simple, but what we will learn to do can make your app accessible to millions of potential users. We will see how to add additional languages and we will see why adding text the correct way via String resources benefits us when it comes to adding multiple languages.

In this chapter, we will do the following:

  • Make the Note to self app multilingual by adding the Spanish and German languages
  • Learn how to better use String resources

Let's get started.

Making the Note to self app Spanish, English, and German

First, we need to add some folders to our project – one for each new language. The text is classed as a resource, and, consequently, needs to go in the res folder. Follow these steps to add Spanish ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Android with Kotlin

Programming Android with Kotlin

Pierre-Olivier Laurence, Amanda Hinchman-Dominguez, Mike Dunn, G. Blake Meike
How to Build Android Apps with Kotlin - Second Edition

How to Build Android Apps with Kotlin - Second Edition

Alex Forrester, Eran Boudjnah, Alexandru Dumbravan, Jomar Tigcal
Java to Kotlin

Java to Kotlin

Duncan McGregor, Nat Pryce

Publisher Resources

ISBN: 9781789615401Supplemental Content