Too many dispatchDraw, why?
<p>I am having an activity with two ViewGroup as it's children, and each ViewGroup has one or more views in it. I found that the dispatchDraw() is being called four times each time I make change, and 10 times when I use ViewFlipper to flip to next or previous. It really kills my performance, but I can't find out where these draws come from by Thread.dumpStack. They all look identical in the stack dump. Does anybody know when will Android calls dispatchDraw, which in turn calls onDraw of view? I know there's an article in dev guide telling me HOW Android draws views, but it doesn't tell me WHEN.</p>
