background - Is there a callback interface in android.view.View which indicate that the view itself turned unseen? -
view.ondetachedfromwindow
means view no longer has surface drawing, view.onwindowfocuschanged
means window containing view gains or loses focus.
i need callback means view turns unseen. there more 1 case of turning unseen, maybe visibility of view changed or view go background. there callback this? can give me advice?
this viewtreeobserver.ongloballayoutlistener
seems looking for.
as says here:
interface definition callback invoked when global layout state or visibility of views within view tree changes.
Comments
Post a Comment