Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • The problem with your approach is that it all extends LinearLayoutManager. What if you need any other LayoutManager. This is the big advantage of attaching a scroll listener and a custom scroller. You can attach it to any LayoutManager you want. Otherwise, it would be a nice solution, your LayoutManagers are nice and clean. Commented Mar 16, 2016 at 20:26
  • Thx! you're right that having a scroll listener could be more flexible is many cases. I choose to do it for LinearLayoutManager only as I didn't find the practical need to use it for a grid or staggered anyway and I find it naturally that this behavior is handled by the LayoutManager. Commented Mar 16, 2016 at 22:32