Code example for ActionBarDrawerToggle

Methods: getActionBar, invalidateOptionsMenu

0
											// onPrepareOptionsMenu() 
			} 
 
			/** Called when a drawer has settled in a completely open state. */ 
			public void onDrawerOpened(View drawerView) {
				this.title = getActionBar().getTitle().toString();
				getActionBar().setTitle("Menu");
				invalidateOptionsMenu(); // creates call to
											// onPrepareOptionsMenu() 
			} 
		}; 
 
		getActionBar().setDisplayHomeAsUpEnabled(true);
		getActionBar().setHomeButtonEnabled(true);
 
		// Set the drawer toggle as the DrawerListener 
		this.drawerLayout.setDrawerListener(this.drawerToggle);
		this.drawerToggle.setDrawerIndicatorEnabled(false);
 
	}