fromInt

Converts to a CollectionOrientation instance from RecyclerView's orientation.

Return

A CollectionOrientation instance corresponding to the provided value

Parameters

value

The integer value representing the orientation (RecyclerView.HORIZONTAL or RecyclerView.VERTICAL)

Throws

if the value is not a valid orientation constant