Code example for WindowManager

Methods: removeView

0
        if (mView != null) {
            // note: checking parent() just to make sure the view has 
            // been added...  i have seen cases where we get here when 
            // the view isn't yet added, so let's try not to crash. 
            if (mView.getParent() != null) {
                mWM.removeView(mView);
            } 
            mView = null;
        } 
    } 
 
    private final Runnable mShow = new Runnable() {
        @Override 
        public void run() { 
            handleShow(); 
        } 
    }; 
 
    private final Runnable mHide = new Runnable() {
        @Override 
        public void run() {