Is it possible to use another file other than attrs.xml to store a specific set of attributes like colors?
Now:
attrs.xml
I want to split into:
attrs.xml
colors.xml
Is it possible to use another file other than attrs.xml to store a specific set of attributes like colors?
Now:
attrs.xml
I want to split into:
attrs.xml
colors.xml
Yes, of course you can, just define a colors.xml
in your values
folder and place there your desired colors like so:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="my_blue">#c00e</color>
<color name="my_welcome_color">#3399cc</color>
<color name="my_transperent_white">#afff</color>
....
</resources>