Correctly handle non-visible views.
Modified OnScreenSwitchListener to notify used before as well as after animation.