How to reference style attributes from a drawable?
问题 I want to have 2 selectable themes for my application. In order to do that, I defined some attributes, like this: <attr format=\"color\" name=\"item_background\" /> Then, I created both themes, like this: <style name=\"ThemeA\"> <item name=\"item_background\">#123456</item> </style> <style name=\"ThemeB\"> <item name=\"item_background\">#ABCDEF</item> </style> This method works great, allowing me to create and modify several themes easily. The problem is that it seems that it can be used only