title: Showing Elevation with Cardview in Preview in Android Studio but not in Device
body: <p>I was trying to make shadow effect with Cardview and it is showing the shadow effect in the XML Preview but there is no shadow effect on the Physical Device</p>
  
  <p><a href="https://i.stack.imgur.com/OPgMJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OPgMJ.png" alt="Recycler View on Device which is not showing any Cardview Effect"></a></p>
  
  <p><a href="https://i.stack.imgur.com/6fli3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6fli3.png" alt="Preview on Android Studio which is showing the shadow effect"></a></p>
  
  <p>Here is the code for the XML of recycler view data item.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:card_view="http://schemas.android.com/apk/res-auto"
  android:orientation="vertical"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"&gt;
  
  &lt;android.support.v7.widget.CardView
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:elevation="3dp"
      card_view:cardCornerRadius="@dimen/card_album_radius"&gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;ImageView
              android:background="?attr/selectableItemBackgroundBorderless"
              android:id="@+id/cast_profile_picture"
              android:layout_width="match_parent"
              android:layout_height="200dp"
              android:src="@drawable/image4" /&gt;
  
          &lt;TextView
              android:paddingLeft="@dimen/album_title_padding"
              android:paddingRight="@dimen/album_title_padding"
              android:paddingTop="@dimen/album_title_padding"
              android:id="@+id/cast_name"
              android:textSize="17sp"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/Title"/&gt;
  
          &lt;TextView
              android:paddingBottom="@dimen/songs_count_padding_bottom"
              android:paddingLeft="@dimen/album_title_padding"
              android:paddingRight="@dimen/album_title_padding"
              android:id="@+id/cast_character_name"
              android:textSize="13sp"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/Sub_Title"/&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p></p>