jasonwyatt / asynclistutil-example Goto Github PK
View Code? Open in Web Editor NEWExample implementation of AsyncListUtil for moving SQLite access off the UI thread with a RecyclerView.
License: The Unlicense
Example implementation of AsyncListUtil for moving SQLite access off the UI thread with a RecyclerView.
License: The Unlicense
I've found some caveats when trying to add filtering to such adapter:
We implemented search via SearchView and on each text change (new search) we have to re-init AsyncListUtil itself (otherwise list is not updated fully, there were many bugs with not cleared items etc.)
Here is adapter code (and all project code there in branch)
Not sure - if listUtil is defined as field of RecyclerView.Adapter is it necessary marking it as volatile to be visible for all threads?
And when creating and assigning new AsyncListUtil - must any listeners (e.g. OnScrollListener) attached to recycler view be re-attached?
p.s. create SO topic too: https://codereview.stackexchange.com/questions/191818/reloading-asynclistutil-in-recyclerview-adapter-on-searchview-update
Thanks.
Hi, Jason
Thanks for kind of "reference" implementation for database list with AsyncListUtil.
May be you investigate if it's possible to add kind of item drop and drop features for such list? or there may be already such implementations with AsyncListUtil?
p.s. checked SO, but didn't find any related: https://stackoverflow.com/questions/48550513/android-cursor-list-based-on-asynclistutil-with-drag-drop-support
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.