views:

30

answers:

0

Hi! I have two questions:

  • What is the function of dispatchDraw()? The documentation says that it draws the children for the widget. Is this called after the onDraw() of the widget or is it totally unrelated.

  • I saw the source code for the SlidingDrawer widget on the Android website. They have not overridden onDraw() for it. I tried doing it, but it did not draw on the canvas for the SlidingDrawer. Any idea why? Does the dispatchDraw() call onDraw() for the content of the SlidingDrawer?

Sorry if they seem silly. But I really want to know! Thanks!