• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps To Strings.xml or not to Strings.xml

I'm a begining Android developer.

Almost every xml layout uses references to strings.xml instead of a string literal.

Is this just to reinforce how to reference other resources? Streamline localization for other languages? Or is this something that has been adopted by the style commitee to make code uglier?
 
You don't rename the file, you rename the folder. For example, the folder strings.xml is located in is the values folder, so you would rename the folder to values_en.
 
You don't rename the file, you rename the folder. For example, the folder strings.xml is located in is the values folder, so you would rename the folder to values_en.

Excellent!

So how do you tell the application which strings.xml to use? Is it something in the manifest.xml?
 
Back
Top Bottom