Is there a way with the RecyclerView to go directly to a nominated position rather than scroll to it. (If the distance to the target is large and the item layout complex, scrolling can take an acceptable amount of time.)
Use ScrollToPosition
to go directly to a position on RecyclerView
recyclerView.scrollToPosition(your_position)
http://developer.android.com/reference/android/support/v7/widget/RecyclerView.html#scrollToPosition(int)
You can use recyclerView.scrollToPosition(position)
instead of smoothScrollToPosition(position)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With