title: Android - Hiding action bar in material theme in xml
body: <p>I'm using a theme that inherits from <code>"android:Theme.Material.Light"</code> and am unable to find a way to hide the action bar from the xml style customizations. When using <code>"Theme.AppCompat.Light"</code> I was able to do it with something like this</p>
  
  <pre><code>&lt;style name="MyTheme" parent="Theme.AppCompat.Light"&gt;
      &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>How can I achieve a similar result with the material theme? I know you can hide it programmatically but not only is it inconvenient because you can't actually see the real layout on Android studio without having to run the app every time, but also, the action bar still appears for a second when you run the app, before <code>getActionBar().hide()</code> is run and it looks really unprofessional.</p>
  
  <p><strong>SOLUTION:</strong></p>
  
  <pre><code>&lt;style name="MyTheme" parent="android:Theme.Material.Light"&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="android:windowActionBar"&gt;false&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>