findViewByPosition

open fun findViewByPosition(position: Int): View(source)

Finds the view which represents the given adapter position.

This method traverses each child since it has no information about child order. Override this method to improve performance if your LayoutManager keeps data about child views.

If a view is ignored via ignoreView, it is also ignored by this method.

Return

The child view that represents the given position or null if the position is not laid out

Parameters

position

Position of the item in adapter