java - Android How to Save states of my listview -


is there listviewobject.saveviewstates(view) function can use? have listviews, have other listviews custom adapters, neither of these save states of view. there lot of dynamically generated content in these listviews, of course, when row goes outside of view, data reset.

i understand concept behind viewholder, yet having great difficulty retroactively fitting listviews them. (nullexceptions, illegalstateexceptions)

since common way of holding view pass view, wouldn't make sense listview had built in function accepted view variable? understand listview created limited memory in mind, seems negligent there wouldn't way save states built in, in contrast webview - built limited memory in mind - user can force enable/disable caching, own memory management etc.

insight appreciated

the whole idea of list is dynamic , can potentially long - have lots of rows invisible. therefore aim of adapter approach keep many views visible on screen , fill them data running getview() - should reuse views if no longer needed.

so when take in account, becomes pretty straightforward, it's data model behind (stored in adapter) should saved/reloaded , list views should rebuild when list reloaded , filled data model.

this more in-line list concept.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -