setLayoutWhileScrollingEnabled

By default, DpadRecyclerView does not skip layout requests during scrolling, but you might want to do this because of the following:

  1. Compose animations trigger a full unnecessary layout-pass

  2. Content jumping around while scrolling is not ideal sometimes

Parameters

enabled

true if layout requests should be possible while scrolling, or false if they should be postponed until RecyclerView.SCROLL_STATE_IDLE. Default is true.