I'm implementing a navigationview
in an Activity
.When a navigationview item gets clicked a new fragment starts.My toolbar is defined in Activity and the problem is that i want to use different toolbars for each fragment.For example in one fragment the toolbar will contain a spinner, on another a couple of textviews etc.
What are my options here?I've thought of keeping the toolbar on Activity and inflate afterwards the views i need from fragment, but maybe there is a better approach?