title: Material Navigation Drawer with recycle view and Card view
body: <p>I'm trying to use Below material navigation drawer from(<strong>android4devs</strong>) :</p>
  
  <pre><code>http://www.android4devs.com/2014/12/how-to-make-material-design-navigation-drawer.html
  </code></pre>
  
  <p>so, here is my main activity :</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"
      android:id="@+id/DrawerLayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:elevation="7dp"&gt;
  
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
  
          &lt;include
              android:id="@+id/tool_bar"
              layout="@layout/tool_bar"&gt;
          &lt;/include&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Hello World" /&gt;
  
      &lt;/LinearLayout&gt;
  
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/RecyclerView"
          android:layout_width="320dp"
          android:layout_height="match_parent"
          android:layout_gravity="left"
  
          android:background="#ffffff"
          android:scrollbars="vertical"&gt;
  
      &lt;/android.support.v7.widget.RecyclerView&gt;
  
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>and i need to do this like the below tutorial:</p>
  
  <p>something like this on main activity:
  <a href="https://farm8.staticflickr.com/7506/15428801864_5b4a709e38_b.jpg" rel="nofollow noreferrer">https://farm8.staticflickr.com/7506/15428801864_5b4a709e38_b.jpg</a></p>
  
  <p>i try this and other methods but i cannot show the cardview exactly on main Activity:</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:card_view="http://schemas.android.com/apk/res-auto"
      android:id="@+id/DrawerLayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:elevation="7dp"&gt;
  
  
      &lt;android.support.v7.widget.CardView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          card_view:contentPadding="16dp"
          card_view:cardElevation="2dp"
          card_view:cardCornerRadius="5dp"&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"&gt;
              &lt;include
                  android:id="@+id/tool_bar"
                  layout="@layout/tool_bar"&gt;
              &lt;/include&gt;
  
              &lt;TextView
                  style="@style/Base.TextAppearance.AppCompat.Headline"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:text="Title" /&gt;
  
              &lt;TextView
                  style="@style/Base.TextAppearance.AppCompat.Body1"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:text="Content here" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/android.support.v7.widget.CardView&gt;
  
  
  
  
  
  
  
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/RecyclerView"
          android:layout_width="320dp"
          android:layout_height="match_parent"
          android:layout_gravity="left"
          android:background="#ffffff"
          android:scrollbars="vertical"&gt;
      &lt;/android.support.v7.widget.RecyclerView&gt;
  
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>i think, there is a problem between 
  
  <p><strong>Before add cardview :</strong></p>
  
  <pre><code>http://i.stack.imgur.com/1tRXy.png
  </code></pre>
  
  <p><strong>Picture after the result (card view added):</strong></p>
  
  <pre><code>http://i.stack.imgur.com/mAHtn.png
  </code></pre>
  
  <p>and there is a problem on my android studio preview, so i cant see this exactly but when i need to see the result, i had to run it on emulator...</p>
  
  <p>My question about the preview and error:</p>
  
  <p><a href="https://stackoverflow.com/questions/30491113/android-support-v7-internal-widget-actionbaroverlaylayout-could-not-be-found">android.support.v7.internal.widget.ActionBarOverlayLayout could not be Found</a>
  and also on this main activity:</p>
  
  <pre><code>The following classes could not be found:
  - android.support.v4.widget.DrawerLayout (Fix Build Path, Create Class)
  - android.support.v7.widget.CardView (Fix Build Path, Create Class)
   Tip: Try to build the project.
  </code></pre>
  
  <p>Build.gradle :</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 22
      buildToolsVersion "22.0.0"
  
      defaultConfig {
          applicationId "com.client.test"
          minSdkVersion 15
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:22.1.1'
  compile 'com.android.support:recyclerview-v7:22.0.0'
  compile 'com.android.support:cardview-v7:22.0.0'
  compile 'de.hdodenhof:circleimageview:1.2.1'
  }
  </code></pre>
  
  <p>By the way,</p>
  
  <p>How can i add this card view on MainActivity ?</p>
  
  <p>Cheers!</p>