Is it possible for an application to use various drawings after selecting a theme in Android?
Example:
I have a layout in which the background refers to: "@ drawable / backgroundsolid", that is, the image backgroundsolid.png in res / drawable-mdpi .
I want that if the user selects the theme "Glass", the link remains to "@ drawable / backgroundsolid", but the resource folder changes to res / drawable-glass , which contains another backgroundsolid.png.
Can I install it programmatically? Thank you very much!
source share