Paint.setColor is expecting an integer. But what I have is a Color object. I don\'t see a color.getIntValue() in Java? So how do I do
Paint.setColor
Color
color.getIntValue()
You may declare a value in color.xml, and thus you can get integer value by calling the code below.
context.getColor(int resId);