Skip to content
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
Open

Our RecyclerView.Adapter is very inefficient #8

murraycu opened this issue Nov 25, 2014 · 1 comment

Comments

@murraycu
Copy link
Owner

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
Copy link
Owner Author

There's still no obvious way to do this correctly with RecyclerView: https://github.com/googlesamples/android-RecyclerView/issues/4#issuecomment-87246333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant