title: Cardview - white border around card
body: <p>I am using a cardview as the root of a custom view I am writing. I using the v7 support library. My XML looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.CardView
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:card_view="http://schemas.android.com/apk/res-auto"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_marginRight="6dp"
          card_view:cardElevation="0dp"&gt;
  
      &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"&gt;
  
          &lt;!-- some other views --&gt;
      &lt;/LinearLayout&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p>My problem is that I am getting a white border around my card view. It looks like it is there to indicate elevation as it is thicker on the right side. I've tried adjusting <code>cardElevation</code> and <code>MaxCardElevation</code> in my XML like so :
  <code>card_view:cardElevation="0dp"</code></p>
  
  <p>and in code in my custom view that extends CardView and uses this layout:</p>
  
  <pre><code>setCardElevation(0);
  setMaxCardElevation(0);
  </code></pre>
  
  <p>But the white border persists. I'm not sure how to get rid of it. If anyone had any input into why this is happening or suggestions on how I can remove the white border it would be appreciated. Thanks much. </p>