epoxy
epoxy copied to clipboard
Scroll position reset after `onDetachedFromWindow` and `recycleChildrenOnDetach == true`
trafficstars
Following the wiki guidance on avoiding memory leak I have been setting LayoutManager.recycleChildrenOnDetach = true for all of my EpoxyRecyclerViews.
I'm using one in a ViewPager now, and when scrolling away from the EpoxyRecyclerView and then coming back to it, my scroll position is lost. If I don't set recycleChildrenOnDetach = true then my scroll position is not lost.
Is there any way around this?
i'm guessing you're not saving and restoring view state to your recyclerview correctly, since that is what controls scroll position