Code example for PopupWindow

Methods: dismissisShowing

0
 
    /** 
     * Dismiss the popup menu. 
     */ 
    public void dismiss() { 
        if (mPopupWindow != null && mPopupWindow.isShowing()) {
            mPopupWindow.dismiss();
        } 
    } 
     
    private int scalePX(int dp_size) {
		int px_size = (int) (dp_size * screen_density + 0.5f);
		return px_size;
	} 
 
    /** 
     * Sets the popup menu header's title. 
     * 
     * @param title 
     */ 
    public void setHeaderTitle(CharSequence title) {