title: How to change toolbar color
body: <p>I've been searching how to customize the toolbar, for example how to add background color, but I don't understand how it works.</p>
  
  <p>I've been trying to add a custom style for my toolbar but any result ...</p>
  
  <p>The Manifest</p>
  
  <pre><code>&lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/Theme.Design"&gt;
  </code></pre>
  
  <p>The style.xml file </p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;style name="Theme.Design" parent="Base.Theme.Design"&gt;
      &lt;/style&gt;
  
      &lt;style name="Base.Theme.Design" parent="Theme.AppCompat.Light.NoActionBar"&gt;
          &lt;item name="colorPrimary"&gt;@color/red&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/red&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/red&lt;/item&gt;
          &lt;item name="android:textColorPrimary"&gt;@color/white&lt;/item&gt;
          &lt;item name="android:windowActionBarOverlay"&gt;true&lt;/item&gt;
          &lt;item name="windowActionBarOverlay"&gt;true&lt;/item&gt;
      &lt;/style&gt;    
      ...
  </code></pre>
  
  <p>And the toolbar in layout </p>
  
  <pre><code>&lt;android.support.v7.widget.Toolbar
              android:id="@+id/home_toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"/&gt;
  </code></pre>