I have a RecyclerView and I want to smooth scroll to position. When I use smoothScrollTo - it scrolls to that position - but it is not first visible. Can someone help with that?
Asked
Active
Viewed 1,338 times
1 Answers
0
Ok. this is how to do it:
- Get the current scroll. here is how to do it.
- Calculate the offset of the item
- Use: smoothScrollToXY(0,offset - currentScroll);

Community
- 1
- 1

Uriel Frankel
- 14,304
- 8
- 47
- 69