Code example for PopupWindow

Methods: dismissisShowing

0
        		 
        	}, Constants.POPUP_TIME); 
        } 
 
        void cancelShowing() { 
            if (null != floatingWindow && floatingWindow.isShowing()) {
            	floatingWindow.dismiss();
            	floatingWindow = null;
            } 
            removeCallbacks(this);
        } 
 
        public void run() { 
            view.getLocationInWindow(mParentLocation);
             
            if (null == floatingWindow)
            	return; 
 
            if (!floatingWindow.isShowing()) {
            	floatingWindow.showAtLocation(view, Gravity.LEFT | Gravity.TOP, 
            			                      x, y);