public Fragment getItem(int num) {
switch (num)
{
case 0:
NewFragment fragment = new NewFragment();
Bundle bundle = new Bundle();
prepareNew();
bundle.putParcelableArrayList("arrPost",arrPost);
fragment.setArguments(bundle);
return fragment;
case 1:
return null;
case 2:
return null;
default:
return null;
}
}
在案例0:它错了吗?,我在线上调试(1> 6从案例0 :),但不存档到第6行?任何想法,请帮助我