1

I've noticed lately that many new android apps uses this Material style for toolbar menu, where the menu icon (the one defined with mToolbar.setNavigationIcon()) is those three straight lines ( enter image description here) , and when the user opens the side menu (DrawerLayout) the lines turns to an arrow in a continuous fashion (animated). As I've seen it already in the android versions of outlook and wikipedia I started thinking it might be a built-in theme/icon-set etc, and not a proprietary implementation, but I can't find anything in the documentation about it.

nobatlinux
  • 347
  • 2
  • 10

1 Answers1

2

New drawer toggle is available in appcompat v7 library, version 21+

Use android.support.v7.app.ActionBarDrawerToggle class instead of android.support.v4.app.ActionBarDrawerToggle when creating drawer toggle.

jskierbi
  • 1,635
  • 1
  • 14
  • 22