getPosition

open fun getPosition(@NonNull view: View): Int(source)

Returns the adapter position of the item represented by the given View. This does not contain any adapter changes that might have happened after the last layout.

Return

The adapter position of the item which is rendered by this View.

Parameters

view

The view to query