Use of dispatchDraw(Canvas canvas)

Favas Kv picture Favas Kv · Aug 13, 2012 · Viewed 17.6k times · Source

What is the use of dispatchDraw(Canvas canvas) method in ViewGroup class??

Answer

Eric picture Eric · Aug 13, 2012

From the Android documentation - protected void dispatchDraw (Canvas canvas):

Called by draw to draw the child views. This may be overridden by derived classes to gain control just before its children are drawn (but after its own view has been drawn).