Code example for ListFragment

Methods: onDestroyView

0
        outState.putInt("xml", this.xmlId);
    } 
 
    @Override 
    public void onDestroyView() { 
        super.onDestroyView(); 
        ViewParent parentView = this.mListView.getParent();
        if (parentView != null) {
            ((ViewGroup) parentView).removeView(this.mListView);
        } 
    } 
 
    @Override 
    public void onStop() { 
        super.onStop(); 
        dispatchActivityStop(); 
    } 
 
    @Override 
    public void onDestroy() { 
        mListView = null;