-
Notifications
You must be signed in to change notification settings - Fork 17
Description
🔑 Use case
Snapping is wonderful and supported by the default LayoutManager. The LoopingLayoutManager should support snapping as well.
🔨 Proposal
It seems like snapping is partially supported by default, but to get a better animation the LoopingLayoutManager needs to implement the RecyclerView.SmoothScroller.ScrollVectorProvider interface.
This may be complicated by the fact there can be multiple views associated with the same adapter position. Or it may not if the SnapHelpers look at coordinates rather than adapter indicies.
It will probably also be complicated by the fact that you can loop around to see an item again. But this area really needs more research.
The default SnapHelpers should also be tested with the LoopingLayoutManager, and unit tests should probably be written.
🔧 Alternative
N/A
📝 Other info
N/A
🐝 Request for assignment
I'm just requesting this feature. But I don't mind implementing it.