I have created a color list under values/colors.xml with the following content:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorConnected">#FFFFFF</color>
</resources>
When trying to use the color from my code like this:
context?.getColor(R.color.colorConnected)
The compiler cannot resolve the color name:
Unresolved reference: colorConnected
PS: Using the color in other XML files works fine (e.g. "@color/colorConnected").