Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android strings.xml Best Practices? [closed]

I'm asking myself a couple of questions and im wondering if there are any best practices.

  1. How to name the string? It's always ending in chaos for me.
  2. How to keep translations in sync? Are there collaborative online tools you can recommend?
  3. How to order the string in the strings.xml file? Alphabetical? Grouped by Activity? ...?
  4. What about reusing strings? Would you recommend using multiple slightly different string or one string that somehow fits in multiple contexts?
like image 479
Julian Avatar asked Sep 07 '11 07:09

Julian


1 Answers

I'm still new at this, so I was looking for an example project. Astrid is open source on Github, and looking through the projects res directory was eye opening for a newbie like me.

Good stuff. Take a look:

https://github.com/todoroo/astrid/tree/master/astrid/res/values

like image 63
Eric Palakovich Carr Avatar answered Oct 14 '22 08:10

Eric Palakovich Carr