Rúben Sousa
Rúben Sousa
This would require another custom SnapHelper. I don't have any plans to implement this, though.
@AndroidDeveloperLB , I'm adding something similar in 2.2.0. It'll not be exactly snapping on X views, but instead limiting the fling distance. You can check this out here: https://github.com/rubensousa/RecyclerViewSnap/blob/develop/gravitysnaphelper/src/main/java/com/github/rubensousa/gravitysnaphelper/GravitySnapHelper.java#L293 You'll...
Check this issue: #29
It's not released yet, but it's in the develop branch if you want to check it out. I closed the issue again since it's not really what you asked for,...
I closed it since I don't have plans to work on this specific feature at the moment. You closed this the last time because of that same reason
You wanted to snap every X views, however I've added support for limiting the maximum fling according to a value you can set through: https://github.com/rubensousa/RecyclerViewSnap/blob/decfb4102dcd8d741cce65f88e2d82e768d840b7/gravitysnaphelper/src/main/java/com/github/rubensousa/gravitysnaphelper/GravitySnapHelper.java#L274 And https://github.com/rubensousa/RecyclerViewSnap/blob/decfb4102dcd8d741cce65f88e2d82e768d840b7/gravitysnaphelper/src/main/java/com/github/rubensousa/gravitysnaphelper/GravitySnapHelper.java#L289 Limiting snapping on...
Because it requires time I don't have at the moment. However, I could leave this open so that anyone else could work on this instead. Meanwhile, If you need something...
@albka1986 for that use case, you need custom touch event handling. It's not possible to scroll one item only. For that, you need PagerSnapHelper. Check this StackOverflow question: https://stackoverflow.com/questions/53483268/how-to-have-recyclerview-snapped-to-center-and-yet-be-able-to-scroll-to-all-item/53510142#53510142
Set an OnClickListener on: ```java @Override public Object instantiateItem(ViewGroup container, int position) ``` And then store the current object as a tag inside that view. In the OnClick(View view), retrieve...
Check the sample's code. The instantiateItem is called by the PagerAdapter. I'll update the sample to reflect this use case when I have time.