📅  最后修改于: 2022-03-11 14:59:44.644000             🧑  作者: Mango
Make sure your adapter for viewPager is inherited from FragmentStatePagerAdapter class Like :
public class ExamplePagerAdapter extends FragmentStatePagerAdapter {....}