OnVisibilityChangeListener

Need onShow and onHide listener. Also, could I suggest you to reformate whole code and use tabs instead of spaces? :)