Issue
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
Solution
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>
Answered By - Emil Adz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.