Louis Tsai Louis Tsai - 1 year ago 96
Android Question

What is the point of using realm-android-adapter?

There is no mention of why. I still have to code all the view holder stuff, so what is the benefit of using it instead of RecyclerView.Adapter?

Just curious.

Answer Source

It automatically adds a RealmChangeListener to your RealmResults, thus automatically calling adapter.notifyDataSetChanged() when the underlying elements are written to. Therefore you don't need to write the code to keep your adapter in sync with the results.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download