focusSearch

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

Searches for the next focusable view in the given direction. Handles focus navigation between the FAB and document editing toolbar.

Return

The next focusable view, or null if none found.

Parameters

focused

The currently focused view.

direction

The direction to search (e.g., FOCUS_UP, FOCUS_DOWN).