setLayoutFrozen
Deprecated
Use suppressLayout.
Enable or disable layout and scroll. After setLayoutFrozen(true) is called, Layout requests will be postponed until setLayoutFrozen(false) is called; child views are not updated when RecyclerView is frozen, smoothScrollBy, scrollBy, scrollToPosition and smoothScrollToPosition are dropped; TouchEvents and GenericMotionEvents are dropped; onFocusSearchFailed will not be called.
setLayoutFrozen(true) does not prevent app from directly calling scrollToPosition, smoothScrollToPosition.
setAdapter and swapAdapter will automatically stop frozen.
Note: Running ItemAnimator is not stopped automatically, it's caller's responsibility to call ItemAnimator.end().
Parameters
frozen
true to freeze layout and scroll, false to re-enable.