title: Removing the title bar when using android.support.design.widget.CoordinatorLayout without affecting rendering of sample layouts
body: <p>I wanted to remove a title bar in an application I am currently working on which i wrote as an Empty Activity, but how ever I seem to get these errors</p>
  
  <pre><code>   Rendering Problems
     The following classes could not be instantiated:
  
     - android.support.design.widget.CoordinatorLayout (Open Class, Show     Exception, Clear Cache)
     - android.support.design.widget.AppBarLayout (Open Class, Show   Exception, Clear Cache)
  
     Tip: Use View.isInEditMode() in your custom views to skip code or show sample  data when shown in the IDE
  
     Exception Details
     java.lang.NoClassDefFoundError: android/support/design/R$styleable   at
     android.support.design.widget.CoordinatorLayout.&lt;init&gt;(CoordinatorLayout.java:187)
     at android.support.design.widget.CoordinatorLayout.&lt;init&gt;CoordinatorLayout.java:179)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
     at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
     at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
  </code></pre>
  
  <p>Here is my activity_main.xml file</p>
  
  <pre><code>    &lt;?xml version="1.0"encoding="utf-8"?&gt;
   &lt;android.support.design.widget.CoordinatorLayout
  
      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:layout_height="match_parent"
       android:fitsSystemWindows="true"
       tools:context=".MainActivity"&gt;
  
       &lt;android.support.design.widget.AppBarLayout
  
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:theme="@style/AppTheme.AppBarOverlay"
           app:elevation="0dp"&gt;
  
           &lt;android.support.v7.widget.Toolbar
               android:id="@+id/toolbar"
               android:layout_width="match_parent"
               android:layout_height="?attr/actionBarSize"
               android:background="?attr/colorPrimaryDark"
               app:layout_scrollFlags="scroll|enterAlways"
               app:popupTheme="@style/AppTheme.PopupOverlay"/&gt;
  
  
       &lt;/android.support.design.widget.AppBarLayout&gt;
  
       &lt;LinearLayout
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:orientation="vertical"
           android:paddingBottom="@dimen/activity_vertical_margin"
           android:paddingLeft="@dimen/activity_horizontal_margin"
           android:paddingRight="@dimen/activity_horizontal_margin"
           android:paddingTop="@dimen/activity_vertical_margin"
           app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
       &lt;/LinearLayout&gt;
  
    &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>And my styles.xml file is
           </p>
  
  <pre><code>&lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&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.NoActionBar"&gt;
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="android:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt;
      &lt;item name="android:statusBarColor"&gt;@android:color/transparent&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;
  </code></pre>
  
  <p></p>
  
  <p>And finally my build.gradle for module.app is
          apply plugin: 'com.android.application'</p>
  
  <p>android {
      compileSdkVersion 24
      buildToolsVersion "24.0.1"</p>
  
  <pre><code>defaultConfig {
      applicationId "com.captureinc.capture"
      minSdkVersion 21
      targetSdkVersion 24
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
      }
      dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:appcompat-v7:24.2.0'
  compile 'com.android.support:design:24.1.0'
  compile 'com.google.firebase:firebase-auth:9.4.0'
       }
       apply plugin: 'com.google.gms.google-services'
  </code></pre>