withLinearLayoutManager

fun RecyclerView.withLinearLayoutManager(vertical: Boolean = true, reversed: Boolean = false): RecyclerView

Set a LinearLayoutManager as this layoutManager.

Return

this

Parameters

vertical

whether this layout should be vertical, default is true

reversed

whether this layout should be reverted, default is false