When is FragmentPagerAdapter's getItem called?

前端 未结 3 1556
陌清茗
陌清茗 2020-12-07 22:30

I\'m writing an application that uses the FragmentPagerAdapter. The fragments in the adapter need to be updated according to outside data - but that doesn\'t happen. I notic

3条回答
  •  既然无缘
    2020-12-07 23:09

    To be more specific than the answer above (which is correct!), getItem is called by FragmentPagerAdapter's instantiateItem(ViewGroup container, int position) method. Just in case that helps :)

提交回复
热议问题