Code example for Rect

Methods: getWindowVisibleDisplayFrame

0
		updateNotificationBarHeight(window);
	} 
 
	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. 
	 *