I use the following code to apply font color when a user clicks on a color in the form of a path, such as RED.
mPaint.setColor(getResources().getColor(R.color.color2));
And the color2 file in color.xml
<color name="color2">#FF3C00</color>
Now I am facing a problem when applying the following color.

I use canvas to draw paint by touching it in my application, and want to draw something like an attached screen on canvas. I can draw it, but it looks like a solid color (I mean a full circle, but not a dot inside)
Please help me find this.
source
share