getRowCountForAccessibility

Returns the number of rows for accessibility.

Default implementation returns the number of items in the adapter if LayoutManager supports vertical scrolling or 1 if LayoutManager does not support vertical scrolling.

Return

The number of rows in LayoutManager for accessibility.

Parameters

recycler

The Recycler that can be used to convert view positions into adapter positions

state

The current state of RecyclerView