Update ViewPager dynamically?

后端 未结 20 3690
时光说笑
时光说笑 2020-11-22 02:00

I can\'t update the content in ViewPager.

What is the correct usage of methods instantiateItem() and getItem() in FragmentPagerAdapter class?

I was using onl

20条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-11-22 02:44

    Try destroyDrawingCache() on ViewPager after notifyDataSetChanged() in your code.

提交回复
热议问题