get clipRect from the onDraw method object passed to Canvas. This clipRect (Canvas :: getClipBounds) is actually an invalid Rect.
Sometimes clipRect is larger because different invalid areas are combined together, so that one event is fired rather than fired multiple for performance reasons.
Faisal feroz
source share