Code example for ActionBarDrawerToggle

Methods: getActionBar, invalidateOptionsMenu

0
			super(activity, mDrawerLayout, R.drawable.ic_drawer, 0, 0);
		} 
 
		@Override 
		public void onDrawerOpened(View drawerView) {
			getActionBar().setTitle(mDrawerTitle);
			invalidateOptionsMenu(); 
		} 
 
		@Override 
		public void onDrawerClosed(View view) {
			getActionBar().setTitle(mTitle);
			invalidateOptionsMenu(); 
		} 
	} 
 
	private class DrawerItemClickListener implements ListView.OnItemClickListener {
		@Override 
		public void onItemClick(AdapterView parent, View view, int position, long id) {
			selectItem(position);
		}