title: Removing Toolbar from the app
body: <p>I want to remove toolbar from the app in <code>XML</code> file, look red box in the <strong>image</strong>. </p>
  
  <p><img src="https://i.stack.imgur.com/SIAV7.png"></p>
  
  <p><strong>The code for that is:</strong></p>
  
  <pre><code>&lt;include  layout="@layout/toolbar"
              android:id="@+id/toolbar" /&gt;
  </code></pre>
  
  <p>I removed the above code, while running the app it get crash. Why so and how to remove that toolbar in my file?</p>
  
  <p>Full code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:orientation="vertical"
      android:id="@+id/dlMain"
      android:visibility="visible"
      android:layout_height="match_parent"
      android:keepScreenOn="true"
      tools:context="com.namarsaham.society.jainvidhya.WebViewActivity"&gt;
      &lt;LinearLayout
          android:id="@+id/dllayout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;include  layout="@layout/toolbar"
              android:id="@+id/toolbar" /&gt;
  
              &lt;im.delight.android.webview.AdvancedWebView
                  android:id="@+id/webview"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:visibility="visible"/&gt;
  
  
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p><strong>My theme Code:</strong></p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /&gt;
  
      &lt;style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /&gt;
  
  &lt;/resources&gt;
  </code></pre>