invalidate() doesn't recall OnDraw method
问题 invalidate() doesn't recall my OnDraw() method. I use invalidate() in a setter method in the same class that OnDraw() is in. public class PuzzleDraw extends View { // defining some variables // protected void onDraw(Canvas canvas) { super.onDraw(canvas); // codes for painting puzzle // } public PuzzleDraw(Context context) { super(context); } // Method for giving cursor X/Y from MainActivity OnTouch() method and using it in OnDraw() method in some part of painting code // public void setCursor