rubensousa / GravitySnapHelper

A SnapHelper that snaps a RecyclerView to an edge.
Apache License 2.0
5k stars 615 forks source link

Snap to a custom position #25

Closed mspmax closed 7 years ago

mspmax commented 7 years ago

Hi,

First of all, thank you for your work and appreciate it. This is more like a requirement than an issue. screenshot_20170804-135308

So I have this requirement to snap the horizontal recyclerView to the left edge of the screen (exactly like latest play store update for movies) during the first scroll event. Does the library support this kind of requirement ? or do you have any bright work around's?

rubensousa commented 7 years ago

I can think of a possible way: add an invisible placeholder item with X width (in this case, it seems around 4x the usual item's width) and then use GravityPagerSnapHelper.

Let me know if this works :)

rubensousa commented 7 years ago

Closing due to no response