title: How to remove default cardview border from the layout.xml
body: <p>I can't remove the default border of a CardView. Has anyone encountered this problem before? </p>
  
  <p><strong>Two border lines are overlapping</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/ptcuX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ptcuX.png" alt="Two border line overlapping"></a></p>
  
  <p><strong>CardviewDesign.xml</strong></p>
  
  <pre><code>&lt;android.support.v7.widget.CardView
      xmlns:android="https://schemas.android.com/apk/res/android"
      xmlns:android2="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:card_view="https://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/card_view"
      android:layout_width="match_parent"
  
      android2:layout_marginTop="5dp"
      android2:layout_marginLeft="5dp"
      android2:layout_marginRight="5dp"
      android2:layout_gravity="center|top"
  
      card_view:cardCornerRadius="20dp"
      android2:layout_width="match_parent"
      android2:layout_height="wrap_content"&gt;
  
  &lt;FrameLayout
      android2:layout_width="match_parent"
      android2:layout_height="400dp"
  
      android2:background="@drawable/cardviewstring"&gt;
  
  
  
      &lt;LinearLayout
          android2:orientation="vertical"
          android2:layout_width="380dp"
          android2:layout_height="match_parent"
  
  
          android2:weightSum="1"
          android2:layout_marginRight="20dp"&gt;
  
          &lt;LinearLayout
              android2:orientation="vertical"
              android2:layout_width="match_parent"
              android2:layout_weight="1"
              android2:layout_height="250dp"&gt;
  
              &lt;ImageView
                  android2:layout_width="match_parent"
                  android2:layout_height="match_parent"
                  app:srcCompat="@mipmap/ic_launcher"
                  android2:id="@+id/imageView4" /&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android2:orientation="vertical"
              android2:layout_width="match_parent"
              android2:layout_height="wrap_content"
              android2:paddingTop="25dp"&gt;
  
              &lt;ScrollView
                  android2:layout_width="match_parent"
                  android2:layout_height="84dp"
                  android2:background="@drawable/screen_background_dark_transparent"
                  android2:layout_marginLeft="3dp"&gt;
  
                  &lt;LinearLayout
                      android2:layout_width="match_parent"
                      android2:layout_height="wrap_content"
                      android2:orientation="vertical" &gt;
  
                      &lt;TextView
                          android2:text="TextView"
                          android2:layout_width="match_parent"
                          android2:layout_height="wrap_content"
                          android2:id="@+id/textView4" /&gt;
  
                      &lt;TextView
                          android2:text="TextView"
                          android2:layout_width="match_parent"
                          android2:layout_height="35dp"
                          android2:id="@+id/textView3" /&gt;
                  &lt;/LinearLayout&gt;
              &lt;/ScrollView&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android2:orientation="vertical"
              android2:layout_marginTop="10dp"
              android2:layout_width="match_parent"
              android2:layout_height="42dp"
              android:layout_alignParentBottom="true"&gt;
  
              &lt;LinearLayout
                  android2:orientation="horizontal"
                  android2:layout_width="match_parent"
                  android2:layout_height="match_parent"&gt;
  
                  &lt;ImageView
                      android2:layout_width="wrap_content"
                      android2:layout_height="wrap_content"
                      app:srcCompat="@drawable/ic_share"
                      android2:id="@+id/imageView3"
                      android2:layout_weight="1" /&gt;
  
                  &lt;ImageView
                      android2:layout_width="wrap_content"
                      android2:layout_height="wrap_content"
                      app:srcCompat="@drawable/ic_like"
                      android2:id="@+id/imageView2"
                      android2:layout_weight="1" /&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><strong>drawable/cardviewstring.xml</strong></p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" &gt;
      &lt;solid android:color="#ffffffff" /&gt;
      &lt;stroke android:width="3dip" android:color="#000000"/&gt;
      &lt;corners android:radius="20dip"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p><strong>color.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;color name="colorPrimary"&gt;#154360&lt;/color&gt;
      &lt;color name="colorPrimaryDark"&gt;#154360&lt;/color&gt;
      &lt;color name="colorAccent"&gt;#ffffff&lt;/color&gt;
      &lt;color name="colorButton"&gt;#A0FFFFFF&lt;/color&gt;
      &lt;color name="colorView"&gt;#A0FF4081&lt;/color&gt;
      &lt;color name="white"&gt;#ffff&lt;/color&gt;
      &lt;color name="lightblue"&gt;#ADD8E6&lt;/color&gt;
      &lt;color name="tabsScrollColor"&gt;#ADD8E6&lt;/color&gt;
      &lt;color name="gray"&gt;#C0C0C0&lt;/color&gt;
      &lt;color name="black"&gt;#000000&lt;/color&gt;
  
      &lt;color name="ccolorPrimary"&gt;#3F51B5&lt;/color&gt;
      &lt;color name="ccolorPrimaryDark"&gt;#303F9F&lt;/color&gt;
      &lt;color name="ccolorAccent"&gt;#FF4081&lt;/color&gt;
      &lt;color name="year"&gt;#999999&lt;/color&gt;
      &lt;color name="title"&gt;#222222&lt;/color&gt;
  
      &lt;drawable name="screen_background_dark_transparent"&gt;#80000000&lt;/drawable&gt;
  
  &lt;/resources&gt;
  </code></pre>