recyclerview linearlayoutmanager kotlin
snippet in kotlin

recyclerview linearlayoutmanager kotlin

user8320

    // Initialize a new linear layout manager
        var linearLayoutManager: LinearLayoutManager = LinearLayoutManager(
            activity?.applicationContext, // Context
            LinearLayout.VERTICAL, // Orientation
            false // Reverse layout
        )

        list.layoutManager = linearLayoutManager