Code example for PopupWindow

Methods: getHeightgetWidthisShowingupdate

0
 
	public void show() { 
		// show display popup window 
		if (null != _mDisplayPopupWindow) {
			// check display popup window visibility 
			if (_mDisplayPopupWindow.isShowing()) {
				// update display popup window location 
				_mDisplayPopupWindow.update(getXOffset(), getYOffset(),
						_mDisplayPopupWindow.getWidth(),
						_mDisplayPopupWindow.getHeight());
			} else { 
				// show immediately 
				_mDisplayPopupWindow.showAtLocation(((Activity) _mContext)
						.getWindow().getDecorView(), getGravity(),
						getXOffset(), getYOffset()); 
			} 
 
			// check popup window display timer task and cancel it 
			if (null != _mPopupWindowDisplayTimerTask) {
				_mPopupWindowDisplayTimerTask.cancel();
			}