
Here you assign an id to each string which can be referenced wherever you want to use that text in your project. Keep your strings in a strings.xml file: Instead of using hardcoded strings, which are added directly where needed in the code, define each string as a key value pair in a separate resource file called strings.xml.Your life will be much easier if you decide to localize later on. Localizationīefore you dive in, keep the following things in mind. This tutorial will show you how to do that. You should add locale support for these users before making the app available to them. The pants option takes on quite a more risque meaning! But suppose you wanted to put this app in front of a British audience.


In its current state, this app is fine for an American audience. There’s also a fun illustration which is very America-centric which displays the American flag. It displays options which make sense to those familiar with American English. This starter project was built to appeal to an American audience. Check out the official Android documentation for more details. Note: A Spinner is an Android component which works in a similar way to a drop down list.
