Feb 1, 2021
Sure, that would be one way work around it, making the toolbar dynamically changed.
Ideally, we want the fragment owner have its own control of its toolbar, then hacking with its activity toolbar. It become hard to maintain if we have 20 different fragments the activity is managing.