LinearLayoutManager

constructor(context: Context)(source)

Creates a vertical LinearLayoutManager

Parameters

context

Current context, will be used to access resources.


constructor(context: Context, orientation: Int, reverseLayout: Boolean)(source)

Parameters

context

Current context, will be used to access resources.

orientation

Layout orientation. Should be HORIZONTAL or VERTICAL.

reverseLayout

When set to true, layouts from end to start.


constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)(source)

Constructor used when layout manager is set in XML by RecyclerView attribute "layoutManager". Defaults to vertical orientation. orientationreverseLayoutstackFromEnd