Code example for FragmentTransaction

Methods: detach

0
            } 
        } 
 
        public void onTabUnselected(Tab tab, FragmentTransaction ft) {
            if (mFragment != null) {
                ft.detach(mFragment);
            } 
        } 
 
        public void onTabReselected(Tab tab, FragmentTransaction ft) {
            Toast.makeText(mActivity, "Reselected!", Toast.LENGTH_SHORT).show();
        } 
    } 
} 
//END_INCLUDE(complete)