1

How to make that the faster you swipe, the faster the list scrolls? I've noticed this behavior in Instagram's list and in lists of some other applications. Also, the scroll dash bubbles vertically a bit, while it scrolls - a common behavior in those apps, which suggests that their lists are not of a custom implementation.

I couldn't achieve it with Recycler View.

How do they make it?

Artem Novikov
  • 4,087
  • 1
  • 27
  • 33

1 Answers1

0

I'm not familiar with Instagram's scroll behaviour and if it's the same to my proposed solution, but you can give following snippet a shot:

listView.setFriction(ViewConfiguration.getScrollFriction() * 0.5);

In RecyclerView friction param is hidden in LayoutManager somewhere, if I remember correctly. Edit: This may help with ReyclerView

Community
  • 1
  • 1
pawelo
  • 1,405
  • 4
  • 15
  • 30