title: Maintain scroll position in nested RecyclerViews
body: <p>I have a <code>ViewHolder</code> that contains another <code>RecyclerView</code>. This type of the <code>ViewHolder</code> gets reused multiple times. </p>
  
  <p>Since the <code>ViewHolder</code> is shared between different items, the scroll position of the <code>RecyclerView</code> is also shared between items. Eg, You scroll to the end of the first item, the fifth item's RecyclerView also gets scrolled to the very end, because the view is reused.</p>
  
  <p>I'm trying to solve this by mapping 1 <code>ViewHolder</code> to 1 item. </p>
  
  <p>I've tried to set an <code>itemId</code> for the item, call <a href="https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder.html#setIsRecyclable(boolean)" rel="noreferrer">RecyclerView.ViewHolder#setIsRecyclable(false)</a>, and extend/set <code>RecyclerView.getRecycledViewPool().setMaxRecycledViews()</code> as mentioned in <a href="https://stackoverflow.com/a/34900944/1127180">this answer</a></p>
  
  <p>After I scroll down and scroll back up (The <code>ViewHolder</code> gets recycled), the scroll position of the inner RecyclerView is reset to the first item.</p>