Java.lang.IllegalStateException: The application PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged android

前端 未结 6 1554
花落未央
花落未央 2021-02-08 10:00

I am trying to use a static class to pass value to a view instead of using intent as I have to pass a large amount of data. Sometimes I get this error and couldn\'t find out wha

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-08 10:25

    @Override
    public void restoreState(Parcelable state, ClassLoader loader) {}
    @Override
    public Parcelable saveState() {return null;}
    #Add in your adapter after getCount();
    

提交回复
热议问题