Giter VIP home page Giter VIP logo

Comments (4)

vivchar avatar vivchar commented on June 18, 2024

Thanks! I have no a chance to check it. Could you provide more info? Which flags of recyclerView do you use? I think it is default behavior of recyclerView or you use some special flags. Could you check my samples?

from rendererrecyclerviewadapter.

 avatar commented on June 18, 2024

I investigated deeper, and it seems to behave in following way - updating\adding CompositeViewModel child and calling notifyItemChanged(compositeViewModelPosition) causes all children items of this CVM to be recreated (not refreshed!), even if they are not visible. In my there are only 3,5 child items on screen, but createViewHolder and bindItem is called for all 13 children of this CVM. Right now I have only one CVM per screen, and children number is not higher than 13-14, so I can't check RRVA behavior if there is more group\child items in list.
Regarding flags - either I don't understand the question, or I just use defaults.
Regarding default RV behavior - as far as I understand it creates (visible items number + 3..4) views, and then recycles them. But it is not true in my case with RRVA.
Regarding samples - I read them when I just discovered RRVA and started adding it to the project.
In theory, is it possible for you to add methods to control inner adapters from CompositeViewModel? I mean - notifyItem*. For now I can't figure how to get access to this adapter, maybe I'm missing something? Thank you in advance.

from rendererrecyclerviewadapter.

vivchar avatar vivchar commented on June 18, 2024

Could you provide your sources?

from rendererrecyclerviewadapter.

vivchar avatar vivchar commented on June 18, 2024

I checked it on my samples and it works as expected. I commented all sections exclude the First Stargazers.
In section First Stargazers I see 2.5 items, and the onCreateViewHolder calls 3 times.

Please investigate your sources. So it is a bug in your code. To receive a help please use the stackoverflow.

If you find any evidence/steps to reproduce then please reopen this issue.

from rendererrecyclerviewadapter.

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.