I mean something like:
Error!
Create a colour in colors.xml file in values
#ff0000
In your strings.xml do something like
The next word is red but that is all
I found I could not use the hex code directly in strings.xml