Speaker Deck

The art of organizing resources

by Jeroen Mols

Published April 10, 2017 in Programming

Slides from my talk at Android Makers Paris 2017
video: https://www.youtube.com/watch?v=AjSgAHZT9a0

Do you remember the last time you had to dig into strings.xml to find the right String to use? Or that you manually had to go over all drawables to find the one you needed?

Whenever we start a new project, we take a lot of care in setting up our architecture, CI, build flavors,... But do you also have a strategy to name your resources?

You should! Because the lack of XML namespaces, makes managing Android resources tedious. And causes things to grow out of control easily, especially in large projects.

So let's introduce a simple scheme that will solve your pains:
- easy lookup of any resource (autocomplete)
- logical, predictable names
- clean ordering of resources
- strongly typed resources

This talk will explain the mechanism, its advantages, limitations and provide an easy to use cheat sheet.