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) {
		this.window.setOnDismissListener(listener);
	} 
 
	/** 
	 * Displays like a popdown menu from the anchor view 
	 */ 
	public void showLikePopDownMenu() { 
		this.showLikePopDownMenu(0, 0);
	} 
 
	/** 
	 * Displays like a popdown menu from the anchor view. 
	 *  
	 * @param xOffset 
	 *            offset in X direction 
	 * @param yOffset