Android setOnScrollListener on RecyclerView deprecated
addOnScrollListener(OnScrollListener)
means you can add more than one listener to a RecyclerView.
removeOnScrollListener(OnScrollListener)
means you can remove one of the listeners that attached to a specific RecyclerView. If the arg
was set null, it equals to clearOnScrollListeners()
method.
And, clearOnScrollListeners()
let you remove all the listener from a RecyclerView.