Comments (4)
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.
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.
Could you provide your sources?
from rendererrecyclerviewadapter.
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)
- How to use with Android databinding HOT 1
- which versioin should be used for ANDROID SDK 27? HOT 1
- migration to ListAdapter HOT 4
- Simple Android Or Androidx ? HOT 1
- Any plan to upgrade to Kotlin? HOT 1
- Access CompositeViewBinder adapter HOT 1
- how to access composite item recyclerview for snap HOT 6
- add CustomViewFinder support HOT 2
- add setOnClickListener without View paramenter HOT 1
- Drag and drop support HOT 8
- wrap RecyclerView to WeakReference HOT 1
- How to add a custom paging adapter HOT 1
- ViewState overrides value from Model HOT 2
- setItems() always replace current items HOT 1
- Unable to resolve model methods ? HOT 4
- How to get item position after updating items HOT 7
- How to create a StargazerViewRenderer with version 3.0 ? HOT 6
- Paging 3.0 or Load More Indicator ? HOT 1
- change composite item in parent HOT 1
- ViewState not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rendererrecyclerviewadapter.