I have a canvas, with a background picture, on which i ma able to write, draw lines, and put smaller pictures, to rotate, scale, etc. I need to change the color of one of those bitmaps. I have a color picker which looks like this:
public void colorChanged(int color) {
if (isText) {
myView.setTextColor(color);
} else if(isDrawing) {
mPaint.setColor(color);
myView.setPaint(mPaint);
} else if(ispic) {
//TODO
}
}
I tried something similar with what i have on me isText part of code, but it only changes the color of the line that follows where i put, or move my picture (which is currently transparent, if i do not change the color).
myView is a CustomView, on which i have my onDraw methods.