Initially, it was under a NestedScrollView but since it was mentioned that onScroll wouldn't be called if the RecyclerView is inside a NestedScrollView or a ScrollView, I removed the NestedScrollView.推荐答案我重新启动了Android Studio,现在它一直可以正常工作.但是解决方法可能是删除NestedScrollView中的RecyclerView.I restarted my Android Studio and it is now working all along. But the fix probably was removing the RecyclerView inside the NestedScrollView. 这篇关于RecyclerView onScrolled根本没有被解雇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 17:01
查看更多