title: Is there a way to make RecyclerView requiresFadingEdge unaffected by paddingTop and paddingBottom
body: <p>Currently, I need to use <code>paddingTop</code> and <code>paddingBottom</code> of <code>RecyclerView</code>, as I want to avoid complex space calculation, in my first <code>RecyclerView</code> item and last item.</p>
  
  <p>However, I notice that, <code>requiresFadingEdge</code> effect will be affected as well.</p>
  
  <p>This is my XML</p>
  
  <pre><code>&lt;androidx.recyclerview.widget.RecyclerView
      android:requiresFadingEdge="vertical"
      android:paddingTop="0dp"
      android:paddingBottom="0dp"
  
      android:overScrollMode="always"
      android:background="?attr/recyclerViewBackground"
      android:id="@+id/recycler_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:clipToPadding="false" /&gt;
  </code></pre>
  
  <hr>
  
  <h2>When paddingTop and paddingBottom is 40dp</h2>
  
  <p><a href="https://i.stack.imgur.com/J8u20.png" rel="noreferrer"><img src="https://i.stack.imgur.com/J8u20.png" alt="enter image description here"></a></p>
  
  <p>As you can see, the fading effect shift down by 40dp, which is not what I want.</p>
  
  <hr>
  
  <h2>When paddingTop and paddingBottom is 0dp</h2>
  
  <p><a href="https://i.stack.imgur.com/LfDEv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LfDEv.png" alt="enter image description here"></a></p>
  
  <p>Fading effect looks fine. But, I need to have non-zero <code>paddingTop</code> and <code>paddingBottom</code>, for my <code>RecyclerView</code>.</p>
  
  <hr>
  
  <p>Is there a way to make <code>RecyclerView</code>'s <code>requiresFadingEdge</code> unaffected by <code>paddingTop</code> and <code>paddingBottom</code>?</p>