BeksOmega / looping-layout

A looping LayoutManager for the Android RecyclerView.
Apache License 2.0
274 stars 16 forks source link

feat: Added temporary snap helper support. #27

Closed BeksOmega closed 4 years ago

BeksOmega commented 4 years ago

:clap: Resolves

Work on #7

:star2: Description

Adds temporary support for snapping, as a better looking solution is not possible at this time. (See the post I made about it on the android user group)

This forces the default snapping implementation for LayoutManagers that don't implement RecyclerView.SmoothScroller.ScrollVectorProvider. The LoopingLayoutManager does implement this interface, which causes the snap helper to animate badly.

The default implementation looks better, so I decided that was a good temporary solution.

:bug: Testing

This just triggers the default implementation, so no testing is required.

But I tested all orientations anyway, just to be sure.

:thought_balloon: Other info

Snap helper trial 1 Snap helper trial 2