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

Observable Objects #7

Open
AlokBansal8 opened this issue Feb 20, 2016 · 1 comment
Open

Observable Objects #7

AlokBansal8 opened this issue Feb 20, 2016 · 1 comment

Comments

@AlokBansal8
Copy link

Why isn't observable objects used?

@maberer
Copy link

maberer commented Jul 21, 2016

The project shows an alternative and uses "SortedList" instead of observable fields.
https://developer.android.com/reference/android/support/v7/util/SortedList.html

Because you can use a SortedList.Callback mechanism to describe equality of list items,
adding/updating gets a whole lot easier:

https://developer.android.com/reference/android/support/v7/util/SortedList.Callback.html

Does this answer your question?

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

2 participants