Code example for SlidingDrawer

Methods: animateClose

0
			@Override 
			public boolean onDrag(View v, DragEvent event)
			{ 
 
				if (mDrawerOpen)
					mSlidingDrawer.animateClose();
				else 
					mSlidingDrawer.animateOpen();
				mDrawerOpen = !mDrawerOpen;
				return false; 
			} 
		}); 
 
		mSlidingDrawer.setOnDrawerCloseListener(new OnDrawerCloseListener() {
 
			@Override 
			public void onDrawerClosed() 
			{ 
				doLaunch(); 
			} 
Connect your IDE to all the code out there  Get Codota for Java