Code example for PopupWindow

Methods: setOnDismissListener

0
	 * If you want to do anything when {@link dismiss} is called 
	 * 
	 * @param listener 
	 */ 
	public void setOnDismissListener(PopupWindow.OnDismissListener listener) {
		window.setOnDismissListener(listener);
	} 
 
	/** 
	 * Displays like a popdown menu from the anchor view 
	 */ 
	public void showDropDown() { 
		showDropDown(0, 0); 
	} 
 
	/** 
	 * Displays like a popdown menu from the anchor view. 
	 * 
	 * @param xOffset 
	 *            offset in X direction 
	 * @param yOffset