Code example for Window

Methods: getDecorView

0
	public BezelSwipe(Drawer drawer, Window window, int ignoredTopHeight, int leftDragAreaWidth)
	{ 
		mDrawer = drawer;
		mIgnoredTopHeight = ignoredTopHeight;
		mLeftDragAreaWidth = leftDragAreaWidth;
		mWindowWidth = window.getDecorView().getWidth();
 
		updateNotificationBarHeight(window);
	} 
 
	private void updateNotificationBarHeight(Window window)
	{ 
		Rect rect = new Rect();
		window.getDecorView().getWindowVisibleDisplayFrame(rect);
 
		int notificationHeight = rect.top;
		mIgnoredTopHeight += notificationHeight;
	} 
 
	private void cancelSwipe() 
Stop searching for code, let great code find you!  Add Codota to your java IDE