I am using code
myCanvas.drawColor(0, Mode.CLEAR);
I use it to delete a string if it is not in the exact position.
But he clears all the lines drawn in the canvas.
So how can I remove a specific row from it
First, clip the canvas before drawing: clipRect (int left, int top, int right, int bottom) You need to make a rectangular area 1px wide.
Secondly, drawColor will clear the cropped area. drawColor (0, Mode.CLEAR);