Code example for PopupWindow

Methods: getContentViewsetContentViewshowAsDropDown

0
		if (tView instanceof ViewBaseAction) {
			ViewBaseAction f = (ViewBaseAction) tView;
			f.show();
		} 
		//��������ͬһ��Tab��������һ��Tab��child����ΪpopupWindow������ 
		if (popupWindow.getContentView() != mViewArray.get(position)) {
			popupWindow.setContentView(mViewArray.get(position));
		} 
		popupWindow.showAsDropDown(this, 0, 0);//��ʾpopupWindow
	} 
 
	/** 
	 * �����˵���չ��״̬�����ò˵��ջ�ȥ 
	 */ 
	public boolean onPressBack() { 
		if (popupWindow != null && popupWindow.isShowing()) {
			popupWindow.dismiss();
			hideView(); 
			if (selectedButton != null) {
				selectedButton.setChecked(false);
			}