suppressLayout
Tells this RecyclerView to suppress all layout and scroll calls until layout suppression is disabled with a later call to suppressLayout(false). When layout suppression is disabled, a requestLayout() call is sent if requestLayout() was attempted while layout was being suppressed.
In addition to the layout suppression smoothScrollBy, scrollBy, scrollToPosition and smoothScrollToPosition are dropped; TouchEvents and GenericMotionEvents are dropped; onFocusSearchFailed will not be called.
suppressLayout(true)
does not prevent app from directly calling scrollToPosition, smoothScrollToPosition.
setAdapter and swapAdapter will automatically stop suppressing.
Note: Running ItemAnimator is not stopped automatically, it's caller's responsibility to call ItemAnimator.end().
Parameters
true to suppress layout and scroll, false to re-enable.