Identification when a view really appears / disappears from the visible scope

I would like to know if there is any specific way by which we can receive notifications when the view actually appears on the screen or disappears from the screen. I tried almost all View methods to find out if I get any notifications but received nothing.

I can somehow say a workaround that the view is currently displayed in the visible scope using the onDraw () method. But it is absolutely impossible to find the same when the view leaves the visible area. Is there anything that can help me with this?

Thanks Ashok.

+5
source share
1 answer

onResume() Activity, , getVisibility() onResume().

, 2,2 ( API 8), onVisibilityChanged View.

0

All Articles