requestFocus

open override fun requestFocus(direction: Int, previouslyFocusedRect: Rect?): Boolean

Call this to try to give focus to a specific view or to one of its descendants.

Return

Whether this view or one of its descendants actually took focus.

Parameters

direction

The direction of the focus.

previouslyFocusedRect

The previously focused rectangle.