0

I have two RecyclerView's on the screen. Each View takes half of screen surface. Each View have a LinearLayoutManager as Layout manager with LinearLayoutManager.HORIZONTAL flag.

I need the next effect. When I scroll one of this RecyclerView, another View should be scrolled to the same position in the same time. How I can achieve this?

Sergey Shustikov
  • 15,377
  • 12
  • 67
  • 119

1 Answers1

0

You can use mRecyclerView.scrollBy(dx, dy) where params is variables which are initialized by the onTouch event of first recylcerView

Also see this solution for more detail

Community
  • 1
  • 1
Jemo Mgebrishvili
  • 5,187
  • 7
  • 38
  • 63