@Override public void setPrimaryItem(ViewGroup container, int position, Object object) { super.setPrimaryItem(container, position, object); // Hack to allow the non-primary fragments to start properly if (object != null) { ((Fragment) object).setUserVisibleHint(false); } }
@Override public void setPrimaryItem(ViewGroup container, int position, Object object) { super.setPrimaryItem(container, position, object); if (object != primaryFragment) { primaryFragment = object; setCurrentFragment(primaryFragment); } }
@Override public void destroyItem(ViewGroup container, int position, Object object) { try { super.destroyItem(container, position, object); } catch (IndexOutOfBoundsException e) { // seems to be already gone... } }
public void destroyItem(ViewGroup paramViewGroup, int paramInt, Object paramObject) { q.a("destroyItem position: " + paramInt + " object: " + paramObject); if ((paramObject instanceof com.tinder.fragments.m)) { ((com.tinder.fragments.m)paramObject).d(); } super.destroyItem(paramViewGroup, paramInt, paramObject); }
@Override public void setPrimaryItem(ViewGroup container, int position, Object object) { super.setPrimaryItem(container, position, object); currentMonth = (CalendarFragment) object; if (currentMonth.getGridAdapter() != null) { currentMonth.getGridAdapter().updateContent(); } }
@Override public void destroyItem(ViewGroup container, int position, Object object) { try { super.destroyItem(container, position, object); } catch (Exception e) { e.printStackTrace(); } }
private void clickOnTon_bnfinsh() { ton_bnfinsh.setVisibility(View.GONE); top_bn02.setVisibility(View.VISIBLE); IndivListFragment.flag = false; int i = mViewPage.getCurrentItem(); // NotifyAcapterChange listFragment = // (NotifyAcapterChange)mFragmentStatePagerAdapter.getItem(i); // listFragment.flushList(); mFragmentStatePagerAdapter.notifyDataSetChanged(); mViewPage.setCurrentItem(i); }
@Override public void onResume() { super.onResume(); DataList.getmDetailInformations().clear(); DataList.getmDetailLPinformation().clear(); try { readDataToDisk.ReadBPData(); readDataToDisk.ReadLPData(); } catch (Exception e) { Log.e(TAG, "onCreate: " + e.toString()); } mFragmentStatePagerAdapter.notifyDataSetChanged(); TimeTool.setNowDate(new Date()); }
// Unregister when the item is inactive @Override public void destroyItem(ViewGroup container, int position, Object object) { registeredFragments.remove(position); super.destroyItem(container, position, object); }
@Override public void destroyItem(ViewGroup container, int position, Object object) { super.destroyItem(container, position, object); }
@Override public void destroyItem(ViewGroup container, int position, Object object) { // TODO Auto-generated method stub super.destroyItem(container, position, object); }
@Override public void destroyItem(ViewGroup container, int position, Object object) { super.destroyItem(container, position, object); mFragmentPageReferenceMap.remove(position); }
package com.dns.taxchina.ui.adapter;
@Override public void notifyDataSetChanged() { super.notifyDataSetChanged(); }
@Override public void notifyChange() { int page = mViewPage.getCurrentItem(); // mViewPage.setAdapter(mFragmentStatePagerAdapter); mFragmentStatePagerAdapter.notifyDataSetChanged(); }
public void updateCurrentStyle() { if (selectorFragment != null) adapter.notifyDataSetChanged(); }
@Override public void destroyItem(ViewGroup container, int position, Object object) { mCachedFragments.remove(Integer.valueOf(position)); super.destroyItem(container, position, object); }
@Override public void restoreState(Parcelable state, ClassLoader loader) { super.restoreState(state, loader); }