title: Questions about reusing toolbar across multiple activities
body: <p>I'm new to Android developing, and probably this question has an easy answer that I'm unable to figure out.</p>
  
  <p>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 <code>(setSupportActionBar)</code>, and the XML that only has the toolbar and its settings. This part alone works fine.</p>
  
  <p>Now, my questions come when I want any activity to extend this base activity:</p>
  
  <ul>
  <li>Do I have to setContentView in both the base and the child activity?</li>
  <li>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.</li>
  <li>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.</li>
  </ul>
  
  <p>Thank you very much for your help!</p>