Why Addonscrolllistener That Not Work?
I try to implement load more when scroll to bottom of recyclerView It's work when my XML only have recyclerView but when i put it to scrollview and setNestedScrollingEnabled(false)
Solution 1:
dy is 0 because RecyclerView
is not scrolling, its fitting its content in the scroll view. So, the view which is scrolling is ScrollView
.
This is not a particularly good implementation as all the views in RecyclerView
are inflated at the same time which beats the purpose of RecyclerView
which is to reuse the ViewHolders
when user scrolls and dynamically inflate elements in the View to save memory usage.
Try fixing the height of the RecyclerView
and don't use wrap_content
or match_parent
in the height
property of your RecyclerView
Post a Comment for "Why Addonscrolllistener That Not Work?"