Code example for ActionBarDrawerToggle

Methods: supportInvalidateOptionsMenu

0
		R.string.drawer_close /* "close drawer" description */ 
		) { 
 
			/** Called when a drawer has settled in a completely closed state. */ 
			public void onDrawerClosed(View view) {
				supportInvalidateOptionsMenu(); 
			} 
 
			/** Called when a drawer has settled in a completely open state. */ 
			public void onDrawerOpened(View drawerView) {
				supportInvalidateOptionsMenu(); 
			} 
		}; 
 
		// Set the drawer toggle as the DrawerListener 
		mDrawerLayout.setDrawerListener(mDrawerToggle);
		getSupportActionBar().setDisplayHomeAsUpEnabled(true); 
		getSupportActionBar().setHomeButtonEnabled(true); 
 
	}