setOrientation

open fun setOrientation(orientation: Int)(source)

Sets the orientation of the layout. StaggeredGridLayoutManager will do its best to keep scroll position if this method is called after views are laid out.

Parameters

orientation