Code example for ActionBarDrawerToggle

Methods: invalidateOptionsMenu, onDrawerOpened

0
 
		@Override 
		public void onDrawerOpened(View drawerView) {
 
			// TODO Auto-generated method stub 
			super.onDrawerOpened(drawerView);
 
			invalidateOptionsMenu(); 
		} 
	} 
 
	@Override 
	public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
 
		selectItem(position);
		mDrawerLayout.closeDrawer(mMenu);
	} 
 
	private void selectItem(int position) {
		mMenu.setItemChecked(position, true);