I wanted to create a @color/
color value that can be changed programmatically, but I don't know how to do.
Here is my code (color/color_account.xml):
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/colorId" android:color="#"/>
</selector>
But the id isn't accepted and I can't use it as a drawable (logical).
Can someone explain me how to do?
The colors are not defined, they are chosen by the users so it must be changed programmatically