RecyclerView LinearLayoutManager.HORIZONTAL can I make it so that when horizontal scrolling the screen stops or is fixed?
Did not stop in the middle between the screens, namely, it was fixed on the text or image itself
RecyclerView LinearLayoutManager.HORIZONTAL can I make it so that when horizontal scrolling the screen stops or is fixed?
Did not stop in the middle between the screens, namely, it was fixed on the text or image itself
Judging by the en-SO, you need LinearSnapHelper , which should be used like this:
SnapHelper helper = LinearSnapHelper(); helper.attachToRecyclerView(recyclerView); There are other solutions to the first link.
Source: https://ru.stackoverflow.com/questions/568523/
All Articles