onInterceptFocusSearch

open fun onInterceptFocusSearch(@NonNull focused: View, direction: Int): View(source)

This method gives a LayoutManager an opportunity to intercept the initial focus search before the default behavior of FocusFinder is used. If this method returns null FocusFinder will attempt to find a focusable child view. If it fails then onFocusSearchFailed will be called to give the LayoutManager an opportunity to add new views for items that did not have attached views representing them. The LayoutManager should not add or remove views from this method.

Return

A descendant view to focus or null to fall back to default behavior. The default implementation returns null.

Parameters

focused

The currently focused view