一般用于viewgroup,为true时,不执行viewgroup的onDraw(Canvas canvas)方法
public void setWillNotDraw (boolean willNotDraw)
Added in
API level 1
If this view doesn't do any drawing on its own, set this flag to allow further optimizations. By default, this flag is not set on View, but could be set on some View subclasses such as ViewGroup. Typically, if you override onDraw(android.graphics.Canvas)
you should clear this flag.
Parameters
willNotDraw | whether or not this View draw on its own |
---|