title: RecycleView get cuts at Bottom
body: <p>This question is raised by so many people but for my case those solution and tips are not working.</p>
  
  <p>I'm using RecycleView in fragment to display gridview for product display but is't cut last item at bottomside, I have gone through many solution like <strong>android:clipToPadding="false" and android:paddingBottom="myactionbarsize"</strong> but eventually it's doen't work.</p>
  
  <p>Have a look at my code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 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="match_parent"
      android:id="@+id/ll_parent_vendors"
      android:background="@color/bg_main"&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/rv_vendors"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          android:clipToPadding="false"
          /&gt;
  
      &lt;TextView
          android:id="@+id/txt_empty_vendors"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text=""
          android:textColor="@color/edt_hint_color"
          android:textSize="@dimen/TextSizeNormal"
          android:visibility="gone"
          android:layout_margin="16dp"
          android:padding="16dp"
          android:gravity="center"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt; 
  </code></pre>
  
  <p>Here is my item Xml code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/ll_row_vendor_services"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@color/colorAccent"
      android:orientation="vertical"
      android:padding="1dp"&gt;
  
  
      &lt;com.customview.SquareImageView
          android:id="@+id/img_vendor_services"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable/ic_placeholder"
          android:scaleType="fitXY" /&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom"
          android:background="#ffffff"
          android:orientation="horizontal"&gt;
  
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginLeft="4dp"
              android:layout_weight="1"
              android:gravity="center"
              android:orientation="vertical"&gt;
  
              &lt;TextView
                  android:id="@+id/txt_service_title"
                  android:layout_width="match_parent"
                  android:layout_height="0dp"
                  android:layout_weight="1"
                  android:ellipsize="end"
                  android:lines="1"
                  android:text="@string/app_name"
                  android:textColor="@color/edt_color"
                  android:textSize="@dimen/TextSizeSmall" /&gt;
  
              &lt;TextView
                  android:id="@+id/txt_service_price"
                  android:layout_width="match_parent"
                  android:layout_height="0dp"
                  android:layout_weight="1"
                  android:text="@string/app_name"
                  android:textColor="@color/colorAccent"
                  android:textSize="@dimen/TextSizeSmall" /&gt;
  
  
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/ll_chat"
              android:layout_width="50dp"
              android:layout_height="match_parent"
              android:gravity="center"&gt;
  
              &lt;ImageView
                  android:layout_width="25dp"
                  android:layout_height="25dp"
                  android:background="@drawable/ic_chat"
                  android:clickable="false"
                  android:tint="@color/colorAccent" /&gt;
  
          &lt;/LinearLayout&gt;
  
  
      &lt;/LinearLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>and how I initialize in my fragment</p>
  
  <pre><code>rv_vendors = view.findViewById(R.id.rv_vendors);
  rv_vendors.setHasFixedSize(true);
  rv_vendors.setLayoutManager(new GridLayoutManager(mContext, 2));
  </code></pre>
  
  <p>Here are my Screenshot of emulator Pixel API 24 which cuts the layout at bottom.</p>
  
  <p><a href="https://i.stack.imgur.com/5pHqi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5pHqi.jpg" alt="enter image description here"></a></p>
  
  <p>and other one which is MIA1 real device Screenshot it's perfect with same propertie. </p>
  
  <p><a href="https://i.stack.imgur.com/zvstj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zvstj.jpg" alt="enter image description here"></a></p>
  
  <p>how this happens any hints ?</p>