Closed Larnoo closed 7 years ago
@Larnoo pls provide a demo project that can reproduce this issue.
The issue should be fixed.
The SimpleCell method getItemId
if can't provide a valid id, must return View.NO_ID, not 0.
the bug fix. @jaychang0917
@Override
protected long getItemId() {
// don't have a valid id.
return 0;
}
When DownloadCell getItemId() return 0. the recycler cell method
onBindViewHolder
will never be called.The log of my debug are as follow. Why
onBindViewHolder
called, must callgetItemId
? I must provide a valid id for cell?