title: Android Studio 1.4 - Explain activity_main.xml and content_main.xml
body: <p>I just updated my Android Studio to 1.4, and I'm a bit confused about <em>activity_main.xml</em> and the other xml file <em>content_main.xml.</em></p>
  
  <p>I have this app that programatically generates xml. Everything is fine, except I don't have the action bar.</p>
  
  <p>My onCreate is like this:</p>
  
  <pre><code>    super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  
      ...
     // set layout programatically
  
  
    setContentView(myCustomXML);
  </code></pre>
  
  <p>How do I get the action bar? There must be some very simple solution to this.</p>