Code example for PopupWindow

Methods: dismissisShowing

0
		// TODO Auto-generated method stub 
		super.onDetachedFromWindow(); 
	} 
     
    private void close() { 
    	if (mPreviewPopup.isShowing()) {
    		mPreviewPopup.dismiss();
    	} 
    } 
     
	/** calculate button position relative to this table because MotionEvents are relative to this table 
     */ 
    private void recordButtonPositions() { 
		for (ButtonInfo buttonInfo : buttonInfoList) {
			Log.d(TAG, "button:"+buttonInfo.name);
			 
			// get position of button within row 
			Button button = buttonInfo.button;
			TableRow tableRow = (TableRow)button.getParent();
			 
			buttonInfo.left += button.getLeft()+tableRow.getLeft();