Detecting when a View has been invalidated

Solution 1:

postInvalidate() ends up calling invalidate() so you don't need to override both. But if you override invalidate(), the system will call the overridden version.