I am building off of the NavigationDrawerFragment
that can be auto-generated by Android Studio. It comes with functionality to show a global title and global menu (for the action bar) when the drawer is opened. It does this in an ActionBarDrawerToggle
, using the @overriden methods onDrawerClosed
and onDrawerOpened
.
My question is, how can I make the context switch happen when the drawer first begins to open, rather than when it is completely open? I noticed that the gmail
app does this.