I would like to scroll by a certain amount of pixels in y direction in my recyclerview. I know that there are methods like scrollToPosition() or scrollToPositionWithOffset(). However, those don't really fit my needs.
I saw that LayoutManager provides a method scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state). That sounds like what I want.
How do I use it? What are recycler and state? I didn't find any examples online, so some code would be useful.