adapter.getModelById() not working.
See original GitHub issueCreate model in bindModels()
:
MediaItemView.Model(thmPath, clickListener)
.id(101L)
.addTo(this)
Try to access by id:
adapter.getModelById(101L)
Which is not working probably due to
public EpoxyModel<T> id(Number... ids) {
long result = 0;
for (Number id : ids) {
result = 31 * result + hashLong64Bit(id.hashCode());
}
return id(result);
}
Am I missing something?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
user.get(position).getId() is not working - Stack Overflow
I am using getId() in model class but it is returning null. enter image description here public class Users { String username; String...
Read more >RecyclerView.Adapter - Android Developers
Unlike ListView adapters, types need not be contiguous. Consider using id resources to uniquely identify item view types.
Read more >Customizing Adapters - Ember Data
In Ember Data, an Adapter determines how data is persisted to a backend data store. Things such as the backend host, URL format...
Read more >Using the RecyclerView | CodePath Android Cliffnotes
Overviews. The RecyclerView is a ViewGroup that renders any adapter-based view in a similar way. It is supposed to be the successor of...
Read more >Epoxy Controller · airbnb/epoxy Wiki - GitHub
addTo(this); } new LoadingModel_() .id("loading model") . ... all of your data access is thread safe - Epoxy does not help you with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
if you need the model on click you should use https://github.com/airbnb/epoxy/wiki/Epoxy-Models#click-listeners
Thank you @elihart, Implemented that.