ANDROID - Undo and Redo in canvas
问题 I am drawing a circle (on touch) on bitmap to erase the overlay bitmap for that area in the circle.How do I add undo and redo functionality for this? EDIT:Please refer Android: Undo redo in CustomView as it has the problem I'm currently facing with the given solution. @Override protected void onDraw(Canvas canvas) { pcanvas.drawCircle(x, y, 10, mPaint); canvas.drawBitmap(bitmap, 0, 0, null); super.onDraw(canvas); } onTouchEvent public boolean onTouchEvent(MotionEvent ev) { switch (ev