android viewpager change adapter

后端 未结 4 2053
花落未央
花落未央 2021-02-02 14:46

I\'m developing an app with a ViewPager for lateral scrolling tables, sometimes i need to change the adapter to load a different set of tables. I\'ve tried to do the following:<

4条回答
  •  春和景丽
    2021-02-02 15:21

    Add this to view pager to reload for next fragment:

    viewPager.setCurrentItem()
    

提交回复
热议问题