Open eric-grab opened 6 years ago
I'm having the same issue. I even tried to use both the ItemBinderBase or my own ItemBinder, but that doesn't seem to be the issue.
I've compared my files with the ones in the repository and there is a line in the UsersView.java:
binding.setView(this);
Adding it to my activity solved the issue.
This line is not present on in "How to start" steps in the main repo page:
https://github.com/radzio/android-data-binding-recyclerview#modify-your-activity
But you can see it on the UsersView file:
https://github.com/radzio/android-data-binding-recyclerview/blob/master/app/src/main/java/net/droidlabs/mvvmdemo/view/UsersView.java
I cannot believe it. Exactly 7 months later I'm having the very same issue for the very same mistake. The first Google result lead to me finding the solution in my own answer.
Do you know what I'm missing?
MainActivity.java:
activity_main.xml:
SearchResultViewModel.java:
SearchResultBinder:
rv_item_repo.xml: