getPreserveFocusAfterLayout

Returns true if the RecyclerView should attempt to preserve currently focused Adapter Item's focus even if the View representing the Item is replaced during a layout calculation.

By default, this value is true.

Return

True if the RecyclerView will try to preserve focused Item after a layout if it loses focus.

See also