The application has a horizontal RecyclerView in which there is a selection of cards in the form of a carousel where the main element occupies a central position. How can I do that with the svaype in the direction of the list is not spun for several elements, and scrolled only for one. I tried to use

SnapHelper snapHelper = new PagerSnapHelper() 

but unfortunately it did not solve the problem like this.

  • PagerSnapHelper how did you add to recyclerview? - J. Meirlen

1 answer 1

  val pagerSnapHelper = PagerSnapHelper() pagerSnapHelper.attachToRecyclerView(mRecyclerView) 
  • as I wrote in the question) it does not work) - JunDev