The problem:
I have Fragments in a PagerTitleStrip. I want to get notified when
on Fragment is activeted (i.e. get focus).
The solution: override Fragment's setUserVisibleHint() ...I have Fragments in a PagerTitleStrip. I want to get notified when
on Fragment is activeted (i.e. get focus).
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if (this.isVisible()) {
}
}
this method is called with isVisibleToUser equals to false...
No comments:
Post a Comment