I\'m using tab fragments in an activity and the actionbar hosts the tabs. What I want to do is that whenever a fragment appears (or re-appears) in the view (selected by the
I haven't tested this, but I believe you can use the onHiddenChanged method of the Fragment
onHiddenChanged
From the docs:
Called when the hidden state (as returned by isHidden() of the fragment has changed.
http://developer.android.com/reference/android/app/Fragment.html#onHiddenChanged%28boolean%29