title: Android - How to properly change Actionbar title via Drawer
body: <p>The default code generated when one tries to implement a navigation Drawer activity in Android Studio follows the paradigm:</p>
  
  <pre><code>    public void onSectionAttached(int number) {
      switch (number) {
          case 1:
              mTitle = ...
  </code></pre>
  
  <p>Is there a way for me to avoid hard-coding this? To utilize <code>R</code> fields and names already given to the Drawer entries ("Section 1", "Section 2" etc) so as to be picked regardless of their possible count? Ideally I would like to have this part as generic as possible and even work with <strong>different sets of Drawer entries</strong> (Navigation Drawer Fragments?).  </p>
  
  <p>What is the best approach for this?</p>