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) 
Stop searching for code, let great code find you!  Add Codota to your java IDE