title: CardView width is not matching to width of the screen?
body: <p>I am trying to match the CardView width to the screen width but CardView width is not matching to screen width. I have checked my code again and again and I've even made all the attributes width equal to match parent.</p>
  
  <p>Recyclerview xml --</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      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"
      tools:context=".DisplayTodayExercises"&gt;
  
  &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/exercises_recycler_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
  &lt;/android.support.v7.widget.RecyclerView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Card view xml --</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.CardView
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:padding="@dimen/activity_general_dimen"
      android:orientation="horizontal"&gt;
  
      &lt;TextView
          android:id="@+id/exer_name"
          android:layout_width="0dp"
          android:layout_weight="1"
          android:layout_gravity="center_vertical"
          android:layout_height="40dp"
          android:textStyle="bold"
          android:gravity="center_vertical"
          tools:text="Exercise Name"/&gt;
  
  
      &lt;TextView
          android:id="@+id/se_eps"
          android:layout_width="0dp"
          android:layout_weight="1"
          android:textStyle="bold"
          android:layout_marginLeft="@dimen/sets_reps_dimen"
          android:gravity="center_vertical"
          android:layout_height="40dp"
          tools:text="5 x 6"/&gt;
  
      &lt;CheckBox
          android:id="@+id/checkbox"
          android:layout_width="wrap_content"
          android:layout_marginLeft="@dimen/sets_reps_dimen"
          android:layout_height="wrap_content"
          android:gravity="center_vertical"/&gt;
  
  &lt;/LinearLayout&gt;
    &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p>Inflating code</p>
  
  <pre><code>LayoutInflater inflater = LayoutInflater.from(context);
      View view = inflater.inflate(R.layout.exercises_card_view_layout, null);
      return new ExerciseContentViewHolder(view);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/JyyER.png" rel="nofollow noreferrer">Here is the screenshot</a></p>
  
  <p><a href="https://i.stack.imgur.com/JyyER.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JyyER.png" alt="enter image description here"></a></p>