Android - defining colors by referencing other defined colors Android - defining colors by referencing other defined colors xml xml

Android - defining colors by referencing other defined colors


Adding an answer here in case anyone runs across this in the future.

When creating an Android library, you can mark resources as public. Any resource that is not in the public.xml file is assumed to be private.

Implicitly making attributes private not only prevents users of your library from experiencing code completion suggestions from internal library resources but also allows you to rename or remove private resources without breaking clients of your library. Private resources are filtered out of code completion and the theme editor, and Lint warns you when you try to reference a private resource.