自訂 FragmentPagerAdapter
HashMapFragment> cachedFragmentHashMap;,
@Overridepublic Fragment getItem(int position) { Fragment f = cachedFragmentHashMap.get(position); if (f != null) { return f; }else{ f = OtherFragment.newInstance(); break; } cachedFragmentHashMap.put(position, f); return f;}@Override public void destroyItem(ViewGroup container, int position, Object object) { // super.destroyItem(container, position, object); }