setRecycleChildrenOnDetach

Set whether the LayoutManager of this RecyclerView will recycle its children when this RecyclerView is detached from the window.

If you are re-using a RecyclerView.RecycledViewPool, it might be a good idea to set this flag to true so that views will be available to other RecyclerViews immediately.

Parameters

recycle

Whether children should be recycled in detach or not.