Describe the bug
when registering a scroll listener (endless scroll listener part of this library: https://github.com/mikepenz/FastAdapter), it does not receive the events, when changing ShimmerRecyclerView to android RecyclerView (changed only in layout file, code is always same), it works fine.
To Reproduce
Steps to reproduce the behavior:
by Using EndlessRecyclerOnScrollListener of FasterAdapter (https://github.com/mikepenz/FastAdapter)
//...
appsAdapter = ItemAdapter()
fastAdapter = FastAdapter.with(appsAdapter)
footerAdapter = items()
val endlessRecyclerOnScrollListener =
object : EndlessRecyclerOnScrollListener(footerAdapter) {
override fun onLoadMore(currentPage: Int) {
Timber.d("load more items")
//....
}
}
binding.recyclerView.apply {
layoutManager = LinearLayoutManager(requireContext(), LinearLayoutManager.VERTICAL, false)
adapter = fastAdapter
addOnScrollListener(endlessRecyclerOnScrollListener)
}
Expected behavior
The onLoadMore function of EndlessRecyclerOnScrollListener should be called when scrolling the bottom of recycler view
Smartphone :
Android api 29