title: How to remove extra padding of "CardView" android
body: <p>I have a CardView in my layout with <code>match_parent</code> as width. When I run the app in my Marshmallow test device its works perfectly. But in my Jellybean device, It is showing some padding.</p>
  
  <p>I tried </p>
  
  <p><code>app:cardPreventCornerOverlap="false"
   app:cardUseCompatPadding="false"
   android:hardwareAccelerated="true"</code></p>
  
  <p>But it is not working. </p>
  
  <p>Manifest : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.wiinnova.cryptcoin"&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;application
          android:name=".activities.ThisApplication"
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
          &lt;activity android:name=".activities.HomeActivity"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".activities.ContainerActivity"
              android:windowSoftInputMode="stateAlwaysHidden" /&gt;
          &lt;activity
              android:name=".activities.TransactionActivity"
              android:label="@string/title_activity_transaction"
              android:theme="@style/AppTheme"&gt;&lt;/activity&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Fragment layout :</p>
  
  <pre><code>&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:background="#f00"
      android:orientation="vertical"
      tools:context="com.wiinnova.cryptcoin.fragments.CoinsList_Frg"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@color/colorPrimaryDark"
          android:orientation="vertical"&gt;
  
          &lt;ProgressBar
              android:id="@+id/pro_bar"
              style="@style/Widget.AppCompat.ProgressBar.Horizontal"
              android:layout_width="match_parent"
              android:layout_height="5dp"
              android:foregroundGravity="center"
              android:indeterminate="true"
              android:visibility="gone" /&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:background="#f00"&gt;
  
              &lt;android.support.v7.widget.CardView
                  android:id="@+id/main_top_card"
                  android:layout_width="match_parent"
                  android:layout_height="100dp"
                  android:hardwareAccelerated="true"
                  app:cardElevation="10dp"
                  app:cardPreventCornerOverlap="false"
                  app:cardUseCompatPadding="false"&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:background="@drawable/top_card_img"
                      android:gravity="center"
                      android:orientation="vertical"
                      android:padding="20dp"&gt;
  
                      &lt;TextView
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:text="Watchlist"
                          android:textColor="#fff"
                          android:textSize="25sp"
                          android:textStyle="bold" /&gt;
  
                      &lt;TextView
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:text="Evolution : Current"
                          android:textColor="#fff" /&gt;
  
                  &lt;/LinearLayout&gt;
  
              &lt;/android.support.v7.widget.CardView&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;com.baoyz.widget.PullRefreshLayout
              android:id="@+id/coin_refresh_layout"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              app:refreshColor="@color/colorPrimaryDark"
              app:refreshType="material"&gt;
  
              &lt;android.support.v7.widget.RecyclerView
                  android:id="@+id/coins_list_recycler"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent" /&gt;
  
          &lt;/com.baoyz.widget.PullRefreshLayout&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/add_btn"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="20dp"
          android:src="@drawable/ic_add"
          app:elevation="10dp"
          app:layout_anchor="@id/main_top_card"
          app:layout_anchorGravity="bottom|right|end" /&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>