New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View is null during onLoadMoreRequested ? #686
Comments
You should override onCreateDefViewHolder, call setOnClickListener and setOnValueChangeListener in onCreateDefViewHolder |
As you suggested, I tried to call setOnClickListener by overriding onCreateDefViewHolder. But I had some issues to intialize
|
|
Depending on your needs, you should override the convert method, setListener in the convert method, without rewriting the onCreateDefViewHolder |
Thanks! It worked... |
I'm trying to add Pull to Load more for my RecyclerView using
setOnLoadMoreListener
. The App works fine when it is first loaded. But it raises a NPE with my Viewholder View when it hits theonLoadMoreRequested
. How can I solve this ?Adapter Code
Activity Code
The text was updated successfully, but these errors were encountered: