FragmentPagerAdapter notifyDataSetChanged not working

前端 未结 6 607
天涯浪人
天涯浪人 2021-01-31 15:30

I got a FragmentPagerAdapter. It\'s getItem method can return a fragment according to data it has from the outside. After I update the data its suppose to display I

6条回答
  •  爱一瞬间的悲伤
    2021-01-31 16:01

    I'm not sure about this, but you can try to use FragmentStatePagerAdapter instead of FragmentPagerAdapter . The thing is, i've also run into this issue, and it helped me

提交回复
热议问题