title: Cannot fully scroll to first and last items with padding on both ends in recycler view
body: <p>I have recycler view in a home fragment.</p>
  
  <pre><code>        &lt;androidx.recyclerview.widget.RecyclerView
              android:id="@+id/recyclerViewSkills"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="16dp"
              android:clipToPadding="false"
              android:paddingLeft="16dp"
              android:paddingRight="16dp"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toBottomOf="@+id/textView3" /&gt;
  </code></pre>
  
  <p>The Item in the recycler view has layout as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
          android:layout_height="wrap_content"
          android:clipToPadding="false"
          android:padding="4dp"&gt;
  
          &lt;androidx.cardview.widget.CardView
                  android:id="@id/cardView"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  app:cardElevation="4dp"
                  android:clipToPadding="false"
                  app:cardCornerRadius="8dp"
                  app:contentPaddingLeft="48dp"
                  app:contentPaddingRight="48dp"
                  app:contentPaddingTop="24dp"
                  app:contentPaddingBottom="24dp"
                  app:layout_constraintEnd_toEndOf="parent"
                  app:layout_constraintStart_toStartOf="parent"
                  app:layout_constraintTop_toTopOf="parent"&gt;
  
              &lt;ImageView
                      android:id="@+id/imageViewCategoryIcon"
                      android:layout_width="@dimen/category_card_icon_size_small"
                      android:layout_height="@dimen/category_card_icon_size_small"
                      android:adjustViewBounds="true" /&gt;
  
          &lt;/androidx.cardview.widget.CardView&gt;
  
      &lt;TextView
          android:id="@+id/textViewCategoryName"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginStart="2dp"
          android:layout_marginTop="8dp"
          android:layout_marginEnd="2dp"
          android:ellipsize="end"
          android:gravity="center"
          android:lines="2"
          android:textAlignment="center"
          android:textColor="@color/colorPrimary"
          app:layout_constraintEnd_toEndOf="@+id/cardView"
          app:layout_constraintStart_toStartOf="@+id/cardView"
          app:layout_constraintTop_toBottomOf="@+id/cardView"
          tools:text="Communication" /&gt;
  
      &lt;ImageView
              android:id="@+id/imageViewPremium"
              android:elevation="8dp"
              android:layout_width="24dp"
              android:layout_height="24dp"
              android:adjustViewBounds="true"
              android:scaleType="fitCenter"
              android:src="@drawable/ribbon"
              android:visibility="gone"
              app:layout_constraintTop_toTopOf="@id/cardView"
              app:layout_constraintRight_toRightOf="@id/cardView"
              tools:visibility="visible" /&gt;
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p>My problem is when I cannot fully scroll to the first or last item.</p>
  
  <p>When I scroll to the end it looks like image below:</p>
  
  <p><a href="https://i.stack.imgur.com/nzx6b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nzx6b.png" alt="enter image description here"></a></p>
  
  <p>But when I leave it, it goes back to the position as shown below: Somehow when scroll horizontal the recycler view's padding on left and right doesn't work.</p>
  
  <p><a href="https://i.stack.imgur.com/0vfmk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0vfmk.png" alt="enter image description here"></a></p>