How can I prevent a recycler view from scrolling up?
For example: If I have a recycler view with 20 items and scroll to item 10, I need to block the users from scrolling up again but allow them to scroll down.
RecyclerView
has a stopScroll() method to stop a scroll in progress.
Refer doc: https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.