我遇到了工具栏和返回按钮的问题。以下是我的设置:
即使在评论部分,用户也提到:
即使在评论部分,用户也提到:
但我无法弄清楚如何使后退箭头正常工作。当我按下返回箭头时,抽屉打开,详细片段未弹出。我应该如何实现这一点?This works perfectly. Just set start=0 and end=1 to go from hamburger to arrow, and start=1 and end=0 for arrow to hamburger. One thing you'll have to keep track of is when the drawer is closed when the arrow is shown. At this point, the hamburger ends up being shown (because of the drawer's slide), which you'll have to correct.
问题
- 当添加详细片段时,我应该如何将汉堡包动画化为后退箭头?假设链接中的解决方案不够好。
- 我如何覆盖返回箭头以执行我想要的特定功能,例如动画化为汉堡包、弹出后退堆栈并且不打开抽屉?