When I assign the OFF, MID and ON colors on the xml file the colors are displayed correctly, but when I set them programmatically through setOnColor(), setMidColor() and setOffColor(), the color displayed is another.
The way I set the color is:
tstbAppState.setOnColor(R.color.yellow);
By the way, thanks for the library...