setFocusOutAllowed

fun setFocusOutAllowed(throughFront: Boolean, throughBack: Boolean)

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

Parameters

throughFront

For the vertical orientation, this controls whether focus can move out from the top. For the horizontal orientation, this controls whether focus can move out the left or right (in RTL) side of the grid.

throughBack

For the vertical orientation, this controls whether focus can move out from the bottom. For the horizontal orientation, this controls whether focus can move out the right or left (in RTL) side of the grid.