jaychang0917 / SimpleRecyclerView

A RecyclerView extension for building list more easily.
Apache License 2.0
935 stars 104 forks source link

Item show not correct #23

Closed huy-lv closed 7 years ago

huy-lv commented 7 years ago

When i scroll my recycler view to end and scroll again to top, some item in the top change and become not correct. Please tell me if i miss something. Thank you!

jaychang0917 commented 7 years ago

Hi @huylv177 any sample code?

huy-lv commented 7 years ago

Please take a look, i have just follow your intro in readme H

jaychang0917 commented 7 years ago

I can't get any clue from your code, perhaps you need to provide a sample project that can reproduce this issue for me to check.

huy-lv commented 7 years ago

Here is the sample https://github.com/huylv177/JustADraft

jaychang0917 commented 7 years ago

Hi @huylv177 Sorry for late reply as i am very busy these few days. In your BookCell, try return the imageId. I try to investigate why returning 0 cause this issue later, but this workaround should fix your problem.

@Override
    protected long getItemId() {
        return getItem().imageid;
    }