How to determine when Fragment becomes visible in ViewPager

后端 未结 26 1745
心在旅途
心在旅途 2020-11-22 00:24

Problem: Fragment onResume() in ViewPager is fired before the fragment becomes actually visible.

For example, I have 2 fragments with

26条回答
  •  耶瑟儿~
    2020-11-22 00:49

    I had the same issue. ViewPager executes other fragment life cycle events and I could not change that behavior. I wrote a simple pager using fragments and available animations. SimplePager

提交回复
热议问题