title: Nested RecyclerView. How to prevent parent RecyclerView from getting scrolled while child RecyclerView is scrolling?
body: <p>I am trying to implement a horizontal <code>recyclerview</code> and each item of the <code>recyclerview</code> will be a vertical <code>recyclerview</code> with a grid layout. The problem that i am facing is that when I try to scroll the child <code>recyclerview</code> vertically sometimes the parent <code>recyclerview</code> takes the scroll and starts scrolling horizontally. The approaches I tried to fix this are,</p>
  
  <ol>
  <li><code>setNestedScrollingEnabled(false)</code> on the parent <code>recyclerview</code></li>
  <li>In the <code>onTouch()</code> of the child <code>recyclerview</code> I disable touch events on the parent <code>recyclerview</code> by called <code>requestdisallowinterceptTouchevent(false)</code></li>
  </ol>
  
  <p>None of the above solutions provide a perfect fix for the problem. Any help is appreciated</p>