resources

Hunting Unused Android Resources with Lint

Hunting Unused Android Resources with Lint

I love Lint. I love Lint because it mocks me. Lint mocks me with little yellow markers pointing out questionable code that I need to tidy, and being on the OCD-ish side, I do that.

Lint can also generate a full warnings and errors report. The report can be (and depending on your code base, often is) overwhelming, but a fairly straightforward-to-find section is the "Unused Resources". Unused resources (layouts, strings, colors, drawables, etc.) bloat the application and slow down builds. So obviously, these jerks have got to go.