Code example for Fragment

Methods: onDestroyView

0
            mPhotoView.setOnClickListener(null);
            this.mPhotoView = null;
        } 
         
        // Always call the super method last 
        super.onDestroyView(); 
    } 
 
    /* 
     * This callback is invoked when the Fragment is no longer attached to its Activity. 
     * Sets the URL for the Fragment to null 
     */ 
    @Override 
    public void onDetach() { 
        // Logs the detach 
        Log.d(LOG_TAG, "onDetach");
         
        // Removes the reference to the URL 
        mURLString = null;
         
        // Always call the super method last