I'm new to Android developing, and probably this question has an easy answer that I'm unable to figure out.

I currently want to use a toolbar in almost every activity of my app. I've created a base activity with all the item listeners and a method that sets the toolbar `(setSupportActionBar)`, and the XML that only has the toolbar and its settings. This part alone works fine.

Now, my questions come when I want any activity to extend this base activity:

* Do I have to setContentView in both the base and the child activity?
* If I set the toolbar in the base activity in the onCreate method when I setContentView in the child activity after calling super.onCreate it gets overridden. The only thing that works now is calling super.onCreate in the child, then setContentView(childLayout), then calling an extended method of base activity that sets the toolbar. I feel like this is kinda hacky and there should be better ways to do it.
* Do I have to manually add the toolbar to the XML of each child activity? This isn't a big problem, but I feel like there may be a way to "automatically" add it to every child.

Thank you very much for your help!