Code example for PopupWindow

Methods: dismissisShowing

0
 
	/** 
	 * 如果菜单成展开状态,则让菜单收回去 
	 */ 
	public boolean onPressBack() { 
		if (popupWindow != null && popupWindow.isShowing()) {
			popupWindow.dismiss();
			hideView(); 
			if (selectedButton != null) {
				selectedButton.setChecked(false);
			} 
			return true; 
		} else { 
			return false; 
		} 
 
	} 
 
	private void hideView() { 
		View tView = mViewArray.get(selectPosition).getChildAt(0);
		if (tView instanceof ViewBaseAction) {