O'Reilly logo

Android Design Patterns and Best Practice by Kyle Mew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Translating string resources

Android Studio provides a translation editor to simplify the process of providing alternative resources. In exactly the same way that we create designated folders for different screen sizes, we create alternative values directories for different languages. The editor manages this for us and we do not really need to know much about it but it is useful to know that, if we wished to translate our app into Italian, say, then the editor would create a folder named values-it and place the alternative strings.xml file within it:

Translating string resources

To access the translations editor, simply right-click on the extant strings.xml file in the project ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required