detachAndScrapViewAt

open fun detachAndScrapViewAt(index: Int, @NonNull recycler: @NonNull RecyclerView.Recycler)

Detach a child view and add it to a Recycler's scrap heap.

Scrapping a view allows it to be rebound and reused to show updated or different data.

Parameters

index

Index of child to detach and scrap

recycler

Recycler to deposit the new scrap view into