I've been trying to figure this out on my own, but no chance.
What I need is the RecyclerView
(horizontal scrolling) to always show 3 items. And whenever the user flings or scrolls left and right, it should snap to the next 3 items, if there are any more. I'm just looking for the simplest solution if there's any.
I have found Gallery solutions with a single item, but I need 3 items. I know it must be possible but I couldn't really figure out how. For one, the LayoutManager
should calculate the item width to match it with the width of the device. And I guess I need to use a RecyclerView.OnScrollListener
somehow.
Anyone can help me out here?