Method onDraw() of class android.view.View has the following signature:
Method onDraw() of class android.view.View has the following signature:
The correct signature of the onDraw() method in the android.view.View class is public void onDraw(Canvas). This method is called when the view should render its content, and it takes a Canvas object as a parameter to draw on.
B. public void onDraw(Canvas)