setDebuggingEnabled

open fun setDebuggingEnabled(@NonNull recyclerView: RecyclerView, enabled: Boolean)

Enables features to help debug keylines and other internal layout manager logic.

This will draw lines on top of the RecyclerView that show where keylines are placed for the current CarouselStrategy. Enabling debugging will also throw an exception when an invalid child order is detected (child index and adapter position are incorrectly ordered). See validateChildOrderIfDebugging ()} ()} for more details.

Parameters

recyclerView

The RecyclerView this layout manager is attached to.

enabled

Whether to draw debug lines and throw on state errors.