New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Our RecyclerView.Adapter is very inefficient #8

Open
murraycu opened this Issue Nov 25, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@murraycu
Copy link
Owner

murraycu commented Nov 25, 2014

The RecyclerView.Adapter uses a Cursor to use the data from our ContentProvider:
https://github.com/murraycu/android-galaxyzoo/blob/master/app/src/main/java/com/murrayc/galaxyzoo/app/ListCursorAdapter.java

But it's horribly inefficient, calling notifyDataSetChanged() whenever there is any change in the cursor, making the RecyclerView do work for each item all over again.

@murraycu

This comment has been minimized.

Copy link
Owner

murraycu commented Apr 10, 2015

There's still no obvious way to do this correctly with RecyclerView: googlesamples/android-RecyclerView#4 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment