title: Android - Removing the title bar itself in AppCompatActivity
body: <p>I made a fresh activity using the Tabbed Fragment Viewer layout example as readily available using Android Studio. However, I want to maximize the space of my screen and I decided to remove the title and the menu buttons. I was able to achieve this by doing this in my onCreate function:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      getSupportActionBar().setDisplayShowTitleEnabled(false);
  
      //more lines here      
  }
  </code></pre>
  
  <p>and I commented out the Overrides for creating and handling the menu selection.</p>
  
  <p>This did clear out the title and removed the options menu button (3 square buttons). However, it did not remove the title bar itself. The bar is still there but it does not have contents. It is an eyesore if anything, since I have this blue bar right on top of the tabs that manage the fragments.</p>
  
  <p>I want to remove the bar altogether and not just remove the contents.</p>