I have a problem with incorrect TextView colors. I'm using this expression in xml fragment:
android:textColor="@{viewModel.currentColorOfText}"
In ViewModel I use
When I'm using currentColorOfText = Color.BLUE
everything is okay but when I switch to color defined by myself:
currentColorOfText.value = R.color.blue
TextView is gray (should be blue :))
My defined color in color.xml:
<color name="blue">#0010FF</color>
Thanks in advance