FragmentPagerAdapter with ViewPager and two Fragments. Go to the first from the second and update first's text

前端 未结 3 793
Happy的楠姐
Happy的楠姐 2021-02-06 07:29

I\'m not familiar with FragmentPagerAdapter, so this is going to be one of those questions that we (you) read the description critically.

Structure:

3条回答
  •  半阙折子戏
    2021-02-06 07:29

    I solved this problem by using WeakReferences to the fragments upon creation. See : https://stackoverflow.com/a/23843743/734151

    If you find anything wrong with this approach, please comment.

提交回复
热议问题