onAddFocusables

open fun onAddFocusables(@NonNull recyclerView: RecyclerView, @NonNull views: ArrayList<View>, direction: Int, focusableMode: Int): Boolean(source)

Called to populate focusable views within the RecyclerView.

The LayoutManager implementation should return true if the default behavior of addFocusables should be suppressed.

The default implementation returns false to trigger RecyclerView to fall back to the default ViewGroup behavior.

Return

true to suppress the default behavior, false to add default focusables after this method returns.

Parameters

recyclerView

The RecyclerView hosting this LayoutManager

views

List of output views. This method should add valid focusable views to this list.

focusableMode

The type of focusables to be added.

See also