Code example for Fragment

Methods: setMenuVisibility

0
fragment = getItem(i);
            mCurTransaction.add(view.getId(), fragment, s);
        } 
        if(fragment != mCurrentPrimaryItem)
            fragment.setMenuVisibility(false);
        return fragment;
    } 
 
    public final boolean isViewFromObject(View view, Object obj)
    { 
        // TODO 
    	return false; 
    } 
 
    protected String makeFragmentName(int i, int j)
    { 
        return (new StringBuilder("android:switcher:")).append(i).append(":").append(j).toString();
    } 
 
    public final void restoreState(Parcelable parcelable, ClassLoader classloader)