I have a problem with the toolbar and the back button. Here are the settings I have:

When I add a part fragment, I animate the hamburger on the toolbar as described here , and this makes the hamburger animate the arrow.
Even in the comments section, the user mentions:
It works great. Just set start = 0 and end = 1 to go from the hamburger to the arrow, and start = 1 and end = 0 for the arrow to the hamburger. One thing you will have to keep track of when the drawer is closed when the arrow is shown. At this point, the hamburger ends with a show (due to a drawer slide) that you will have to fix.
But I canβt figure out how to properly set the back arrow. When I press the back arrow, the drawer opens and a part fragment does not appear. How do I implement this?
Questions
- How should I animate a hamburger with the back of an arrow when adding a fragment of a part? assuming a related solution is not enough.
- How to override the back arrow to perform only certain functions that I want? how to revive a hamburger, pop back the stack and DO NOT open the box.
android android-toolbar
Android
source share