You need you use paint and change the paint color as picked by color picker and invalidate the code like this
public class DrawPaint extends View{
Paint textPaint = new Paint();
Paint circlePaint = new Paint();
public DrawPaint(Context context){
super(context);
//set default colors for them
textPaint.setColor(Color.RED);
circlePaint.setColor(Color.GREEN);
}
@Override
protected void onDraw(Canvas canvas){
super.onDraw(canvas);
canvas.drawText("mu text " , 0 , 0 , textPaint);
canvas.drawCircle(10 , 10 , 20 , circlePaint);
}
public void changeTextColor(int color){
textPaint.setColor(color);
invalidate();
}
public void changeCircleColor(int color){
circlePaint.setColor(color);
invalidate();
}
}
get the reference of this view and when you get color from color picker call changeColor method
or Here is working solution Finger-Paint