title: Recyclerview item doesn't take all width of the screen while giving it match parent
body: <p>here is my problem while make a new recyclerview of reviews it shows as below not take all width </p>
  
  <p><a href="https://i.stack.imgur.com/eYKmV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eYKmV.png" alt="enter image description here"></a></p>
  
  <p><strong>My activity</strong> </p>
  
  <pre><code>public class ReviewsActivity extends AppCompatActivity {
  
     private ArrayList&lt;Review&gt; reviews;
  
     @Override
     protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_reviews);
  
        reviews = new Gson().fromJson(getIntent().getStringExtra("reviews"), new
              TypeToken&lt;List&lt;Review&gt;&gt;() {
              }.getType());
      setUpReviewsList();
     }
  
  
     void setUpReviewsList() {
  
       RecyclerView recyclerView = (RecyclerView) findViewById(R.id.rvReviews);
       ReviewsRvAdapter mAdapter = new ReviewsRvAdapter(this, reviews, true);
       recyclerView.setLayoutManager(new LinearLayoutManager(this));
       recyclerView.setAdapter(mAdapter);
  
       }
  
   } 
  </code></pre>
  
  <p><strong>My Adapter</strong> </p>
  
  <pre><code> public class ReviewsRvAdapter extends RecyclerView.Adapter&lt;ReviewsRvHolder&gt; 
   {
  
      private ArrayList&lt;Review&gt; reviews;
      private Context context;
      ReviewsRvHolder holder;
      private DatabaseReference mDatabase;
      boolean isActivity = false;
      // Provide a suitable constructor (depends on the kind of dataset)
  
      public ReviewsRvAdapter(Context context, ArrayList&lt;Review&gt; reviews) {
        this.reviews = reviews;
        this.context = context;
        mDatabase = FirebaseDatabase.getInstance().getReference();
  
      }
  
      public ReviewsRvAdapter(Context context, ArrayList&lt;Review&gt; reviews, boolean isActivity) {
        this.reviews = reviews;
        this.context = context;
        mDatabase = FirebaseDatabase.getInstance().getReference();
        this.isActivity = isActivity;
  
      }
  
  
    /**
     * Create new views (invoked by the layout manager)
     *
     * @param parent
     * @param viewType
     * @return
     */
    @Override
    public ReviewsRvHolder onCreateViewHolder(ViewGroup parent, int viewType) 
     {
  
       View layoutView = LayoutInflater.from(parent.getContext())
      .inflate(R.layout.list_item_user_review, null);
      //        View layoutView = LayoutInflater.from(parent.getContext())
      .inflate(R.layout.layout_review_summary, null);
  
      return new ReviewsRvHolder(layoutView);
      }
  
      /**
      * Replace the contents of a view (invoked by the layout manager)
      *
      * @param holder
      * @param position
      */
     @Override
     public void onBindViewHolder(ReviewsRvHolder holder, int position) {
  
        final int tempPos = position;
        this.holder = holder;
        Review review = reviews.get(position);
        try {
  
      holder.txtReviewDate.setReferenceTime(Long.parseLong(review.getDate()));
        } catch (Exception e) {
            e.printStackTrace();
        }
        if (review.getUser() != null) {
  
           holder.txtUserReviewNum.setText(String.format("%s%s",
                  String.valueOf(review.getUser().getNumOfReviews()),
                  context.getString(R.string.txt_reviews)));
  
          if (review.getUser().getUserName() != null)
              holder.txtReviewerName.setText(review.getUser().getUserName());
        }
  
        holder.txtLikesNum.setText(String.valueOf(review.getLikesNum()));
        holder.rbReviewerRate.setRating((float) review.getRating());
        holder.exTxtUserReview.setText(review.getReview());
        holder.imgBtnMenu.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              //ReviewOtherPopUp(tempPos);
          }
        });
      } 
  
      // Return the size of your dataset (invoked by the layout manager)
      @Override
      public int getItemCount() {
        if (isActivity) {
           return reviews.size();
        }
        //return the smallest number between 3 and list size
         return (3 &gt; reviews.size() ? reviews.size() : 3);
      }
    }
  </code></pre>
  
  <p><strong>here is activity_reviews.xml</strong></p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.better.sftani.ReviewsActivity"&gt;
  
   &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/rvReviews"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>and the list_item_user_review.xml</strong></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:app="http://schemas.android.com/apk/res-auto"
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:layout_margin="4dp"
   android:elevation="2dp"&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      android:padding="4dp"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:padding="16dp"&gt;
  
          &lt;ImageView
              android:id="@+id/imgProfile"
              android:layout_width="40dp"
              android:layout_height="40dp"
              android:layout_gravity="center_vertical"
              android:background="@color/black"
              android:padding="8dp"/&gt;
  
          &lt;LinearLayout
              android:id="@+id/reviewer_linearlayout"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_toRightOf="@+id/imgProfile"
              android:gravity="center_vertical"
              android:orientation="vertical"
              android:paddingLeft="16dp"&gt;
  
              &lt;TextView
                  android:id="@+id/txtReviewerName"
                  android:layout_width="250dp"
                  android:layout_height="wrap_content"
                  android:text="Mohamed Abd El-Sattar"
                  android:textColor="@color/black"/&gt;
  
              &lt;TextView
                  android:id="@+id/txtUserReviewNum"
                  android:layout_width="250dp"
                  android:layout_height="wrap_content"
                  android:text="@string/txt_reviews"/&gt;
          &lt;/LinearLayout&gt;
  
          &lt;ImageButton
              android:id="@+id/imgBtnMenu"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_toEndOf="@id/reviewer_linearlayout"
              android:layout_toRightOf="@id/reviewer_linearlayout"
              android:background="@null"
              android:paddingLeft="10dp"
              android:paddingRight="10dp"
              android:src="@drawable/ic_dots"/&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:paddingLeft="55dp"
          &gt;
  
          &lt;RatingBar
              android:id="@+id/rbReviewerRate"
              style="@style/Base.Widget.AppCompat.RatingBar.Small"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:isIndicator="true"
              android:stepSize="1"/&gt;
  
          &lt;com.github.curioustechizen.ago.RelativeTimeTextView
              android:id="@+id/txtReviewDate"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="8dp"
              android:layout_marginStart="8dp"
              android:paddingBottom="4dp"
              android:paddingTop="4dp"
              android:text="-"
  
              app:relative_time_prefix="Completed "/&gt;
      &lt;/LinearLayout&gt;
  
      &lt;com.better.sftani.Helpers.ExpandableTextView
          android:id="@+id/exTxtUserReview"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:paddingLeft="16dp"
          android:paddingRight="16dp"
          /&gt;
  
      &lt;LinearLayout
          android:layout_width="121dp"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:paddingLeft="48dp"&gt;
  
          &lt;ImageButton
              android:id="@+id/imgBtnLikeReview"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="?selectableItemBackground"
              android:gravity="center_vertical"
              android:src="@drawable/ic_like"
              /&gt;
  
          &lt;TextView
              android:id="@+id/txtLikesNum"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center_vertical"
              android:layout_marginLeft="4dp"
              android:text="0"/&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>i tried a lot to make all of the layouts match parent and it still as it appears above and i search about the problem i saw this 
  <a href="https://stackoverflow.com/questions/46772596/items-in-recyclerview-doesnt-take-the-full-width">it gives it specific width </a></p>