Code example for Window

Methods: getDecorView

0
	} 
 
	private void updateNotificationBarHeight(Window window)
	{ 
		Rect rect = new Rect();
		window.getDecorView().getWindowVisibleDisplayFrame(rect);
 
		int notificationHeight = rect.top;
		mIgnoredTopHeight += notificationHeight;
	} 
 
	private void cancelSwipe() 
	{ 
		mStartX = -1;
		mStartY = -1;
	} 
 
	/** 
	 * Wrapper for dispatching touch events. 
	 *  
	 * @param ev Motion event