Code example for ActionBarDrawerToggle

Methods: supportInvalidateOptionsMenu

0
                R.string.drawer_open,  /* "open drawer" description for accessibility */ 
                R.string.drawer_close  /* "close drawer" description for accessibility */ 
                ) { 
            public void onDrawerClosed(View view) {
            	//getSupportActionBar().setTitle(mTitle); 
            	supportInvalidateOptionsMenu(); // creates call to onPrepareOptionsMenu() 
            } 
 
            public void onDrawerOpened(View drawerView) {
            	//getSupportActionBar().setTitle(mDrawerTitle); 
            	supportInvalidateOptionsMenu(); // creates call to onPrepareOptionsMenu() 
            } 
        }; 
        mDrawerLayout.setDrawerListener(mDrawerToggle);
         
        if (savedInstanceState == null) {
            selectItem(0);   
        }  
         
        image.setImageDrawable(PDFViewer.this.getResources().getDrawable(R.drawable.ic_page_null));