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 (
) , 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.
Asked
Active
Viewed 978 times
1
nobatlinux
- 347
- 2
- 10
1 Answers
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