title: ActionBar vs Toolbar or ActionBar and Toolbar
body: <p>I have read about the toolbar coming in the AppCompat Library and all its features. Some of the things I have noticed in android developers blog (<a href="http://android-developers.blogspot.de/2014/10/appcompat-v21-material-design-for-pre.html" rel="noreferrer">here</a>) is:</p>
  
  <blockquote>
    <p>Toolbar is fully supported in AppCompat and has feature and API parity
    with the framework widget.</p>
  </blockquote>
  
  <p>They have also mentioned that we can have more control on its looks and appearance.</p>
  
  <p>But, when I add an activity in Android Studio I am getting this:</p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appbar_add_contacts"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          android:background="?attr/colorPrimary"
          app:popupTheme="@style/AppTheme.PopupOverlay"&gt;
  
      &lt;/android.support.v7.widget.Toolbar&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt; 
  </code></pre>
  
  <p>Here Toolbar is inside AppBar. (ActionBar and AppBar is same. Isn't it?) What is the use of that. In some blogs also I read that AppBar can be replaced with design support libraries' toolbar.</p>
  
  <p>Normally you get content_layout after your Toolbar. so we will have below line after toolbar.</p>
  
  <pre><code>&lt;include layout="@layout/content_myactivity" /&gt;
  </code></pre>
  
  <p>So, once I had an issue that content is above toolbar (used only toolbar, not inside appbar) hiding the whole toolbar, and still clickable. So I had to move Toolbar below my content in code to get it appeared above my content.</p>
  
  <p>So, what to use? Toolbar? AppBarLayout? Toolbar inside AppBarLayout?</p>
  
  <p>What is the intended use of each one?</p>
  
  <p><strong>UPDATE</strong>:</p>
  
  <p>So I have already added Toolbar in the activity_layout file. Then why needed to use  <code>setSupportActionBar(toolbar);</code> to set toolbar and adding theme <code>AppTheme.NoActionBar</code>. This a normal behavior with all activities in Android Studio. </p>
  
  <p>What is the use of disabling window action bar with </p>
  
  <pre><code>&lt;item name="windowActionBar"&gt;false&lt;/item&gt;
  </code></pre>
  
  <p>and setting it with <code>setSupportActionBar(toolbar)</code> ?</p>