RecyclerView.ViewCacheExtension

This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack.
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.

Note that, Recycler never sends Views to this method to be cached. It is developers
responsibility to decide whether they want to keep their Views in this custom cache or let
the default recycling policy handle it.

Public methods

getViewForPositionAndType

This method should not create a new View. Instead, it is expected to return
an already created View that can be re-used for the given type and position.
If the View is marked as ignored, it should first call
stopIgnoringView(View) before returning the View.

RecyclerView will re-bind the returned View to the position if necessary.