Custom view Canvas onDraw() doesnt draw anything
问题 I am trying to draw a oval using canvas, but it never gets drawn. Here is my code for the custom view. I have also used setWillNotDraw(false) still nothing gets drawn on the screen. public class Myview extends View { Paint paint; RectF rect; public Myview(Context context) { super(context); init(); setWillNotDraw(false); } public Myview(Context context, AttributeSet attrs) { super(context, attrs); init(); setWillNotDraw(false); } public Myview(Context context, AttributeSet attrs, int defStyle)