Code Monkey home page Code Monkey logo

Comments (8)

thorbenprimke avatar thorbenprimke commented on August 11, 2024

@eyecreate - Thanks for the report. The SuperSLiM integration was a tricky so it's quite possible there are some bugs in regards the rows not updating properly.

Could you provide some more details how you got into this state?

  • Add items?
  • Remove items?
    Or is this the initial rendering?

from realm-recyclerview.

eyecreate avatar eyecreate commented on August 11, 2024

This is the initial render and what it looks like after these items are added and then navigating to this fragment. Fresh instances of the fragment yield the same mistake at this point.

from realm-recyclerview.

thorbenprimke avatar thorbenprimke commented on August 11, 2024

Any way you could make the dataset available so that I could investigate it / have a repro case?

from realm-recyclerview.

eyecreate avatar eyecreate commented on August 11, 2024

Here is a link to the Realm DB I was using.
https://cloud.eyecreate.org/index.php/s/bbJyINi94sRYdPl
Let me know if you need anything else.

from realm-recyclerview.

thorbenprimke avatar thorbenprimke commented on August 11, 2024

@eyecreate - thanks for the realm file. The realm data looks okay but I would have to actually see your setup code to know which columns you picked and to repro re-create all the models / adapter.

Since it would take me a bit to recreate all the models and your recyclerView setup / adapter code, I was wondering if you could share you models as well as the recycler view setup code and your adapter implementing via a gist. You could just copy all the classes into one gist. That would help me a lot.

from realm-recyclerview.

eyecreate avatar eyecreate commented on August 11, 2024

This should be what is needed to recreate the page as above.
https://gist.github.com/eyecreate/deb1835ef58e4708f2ba

from realm-recyclerview.

thorbenprimke avatar thorbenprimke commented on August 11, 2024

Aright. Tracked the bug down.

onBindRealmViewHolder with headers was passed the position but this was not the realmIndex but the rowWrapperIndex. This caused the wrong items to be displayed.

The linearLayoutWithHeaders example had:

final CountryModel quoteModel = realmResults.get(rowWrappers.get(position).realmIndex);

instead of

final CountryModel quoteModel = realmResults.get(position);

and thus was covering up this bug. In your example you used the later line. I fixed up the library to provide the correct position so that your code should work correctly now once you upgrade to 0.9.7.

@eyecreate - Please verify that it works for you as well and close the issue.

from realm-recyclerview.

eyecreate avatar eyecreate commented on August 11, 2024

The update seems to have fixed this. Labels now seem to properly match the content.

from realm-recyclerview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.