ActionBarDrawerToggle
This class provides a handy way to tie together the functionality of DrawerLayout and the framework ActionBar
to implement the recommended design for navigation drawers.
To use ActionBarDrawerToggle
, create one in your Activity and call through to the following methods corresponding to your Activity callbacks:
Call syncState from your Activity
's onPostCreate to synchronize the indicator with the state of the linked DrawerLayout after onRestoreInstanceState
has occurred.
ActionBarDrawerToggle
can be used directly as a DrawerLayout.DrawerListener, or if you are already providing your own listener, call through to each of the listener methods from your own.
You can customize the the animated toggle by defining the drawerArrowStyle in your ActionBar theme.
Constructors
Types
Functions
Activity
's onConfigurationChanged method.Activity
's onOptionsItemSelected method.