Code example for FragmentTransaction

Methods: hide

0
 
    @Override 
    public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {
        Log.d("ioio","tab unselect" + className);
        if(fragment!=null) {
            fragmentTransaction.hide(fragment);
    //        fragmentTransaction.detach(fragment); 
        } 
    } 
 
    @Override 
    public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {
        Log.d("ioio","tab reselect");
        return; 
    } 
}