setFocusOutSideAllowed

fun setFocusOutSideAllowed(throughFront: Boolean, throughBack: Boolean)

Sets whether focus can move out from the opposite front and/or back of the RecyclerView

Parameters

throughFront

For the vertical orientation, this controls whether focus can move out from the left of the grid. For the horizontal orientation, this controls whether focus can move out the top side of the grid.

throughBack

For the vertical orientation, this controls whether focus can move out from the right of the grid. For the horizontal orientation, this controls whether focus can move out the bottom side of the grid.