[Android] Force ViewPager re-init items

  • 439
  • 0

摘要:[Android] Force ViewPager re-init items

//Override FragmentPageAdapter function below 

public int getItemPosition(Object object) {
   return POSITION_NONE;
}

參考網頁

http://stackoverflow.com/questions/7369978/how-to-force-viewpager-to-re-instantiate-its-items

http://stackoverflow.com/questions/7263291/viewpager-pageradapter-not-updating-the-view/7287121#7287121